11# File: Makefile
22
33# purpose:
4- # build resources in NeXus definitions tree
4+ # build resources in NeXus Wiki
55
66PYTHON = python3
77SPHINX = sphinx-build
@@ -15,13 +15,10 @@ help ::
1515 @echo " "
1616
1717 @echo "make install Install all requirements to run tests and builds."
18- @echo "make style Check python coding style."
19- @echo "make autoformat Format all files to the coding style conventions."
20- @echo "make test Run documentation tests."
2118 @echo "make clean Remove all build files."
22- @echo "make prepare (Re)create all build files."
19+ # @echo "make prepare (Re)create all build files."
2320 @echo "make html Build HTML version of manual. Requires prepare first."
24- @echo "make pdf Build PDF version of manual. Requires prepare first."
21+ # @echo "make pdf Build PDF version of manual. Requires prepare first."
2522 @echo "make fetch-logo Copy the official logo files from the manual repository."
2623 @echo "make all Builds complete web site for the wiki (in build directory)."
2724 @echo "make local (Developer use) Test, prepare and build the HTML wiki."
@@ -35,32 +32,22 @@ help ::
3532install ::
3633 $(PYTHON ) -m pip install -r requirements.txt
3734
38- style ::
39- $(PYTHON ) -m black --check dev_tools
40- $(PYTHON ) -m flake8 dev_tools
41- $(PYTHON ) -m isort --check dev_tools
42-
43- autoformat ::
44- $(PYTHON ) -m black dev_tools
45- $(PYTHON ) -m isort dev_tools
46-
4735clean ::
4836 $(RM ) -rf ./wiki/source/$(BUILD_DIR )
4937
50- prepare ::
51- $(PYTHON ) -m dev_tools wiki --prepare --build-root $(BUILD_DIR )
38+ # prepare ::
39+ # $(PYTHON) -m wiki --prepare --build-root $(BUILD_DIR)
5240
53- # pdf ::
54- # $(SPHINX) -M latexpdf $(BUILD_DIR) /wiki/source/ $(BUILD_DIR)/wiki/build
55- # cp $(BUILD_DIR)/manual /build/latex/nexus.pdf $(BUILD_DIR)/wiki/source/_static/NeXusManual .pdf
41+ pdf ::
42+ $(SPHINX ) -M latexpdf . /wiki/source/ ./wiki/ $(BUILD_DIR )
43+ cp $(BUILD_DIR ) /wiki /build/latex/nexus.pdf $(BUILD_DIR ) /wiki/source/_static/NeXusWiki .pdf
5644
5745html : fetch-logo
5846 $(SPHINX ) -b html -W ./wiki/source/ ./wiki/source/$(BUILD_DIR ) /html
5947
6048# for developer's use on local build host
6149local ::
62- $(MAKE ) test
63- $(MAKE ) prepare
50+ # $(MAKE) prepare
6451 $(MAKE) html
6552
6653fetch-logo :
@@ -71,10 +58,10 @@ fetch-logo:
7158
7259all ::
7360 $(MAKE ) clean
74- $(MAKE ) prepare
75- $(MAKE ) pdf
61+ # $(MAKE) prepare
62+ # $(MAKE) pdf
7663 $(MAKE) html
77- @echo " HTML built: ` ls -lAFgh $( BUILD_DIR ) / wiki/build/html/index.html` "
64+ @echo "HTML built: `ls -lAFgh wiki/build/html/index.html`"
7865
7966
8067
9885# License along with this library; if not, write to the Free Software
9986# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
10087#
101- # For further information, see http://www.nexusformat.org
88+ # For further information, see http://www.nexusformat.org
0 commit comments