-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (35 loc) · 1.21 KB
/
Makefile
File metadata and controls
46 lines (35 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File: Makefile
# purpose:
# build resources in pyStxm documentation
PYTHON = python3
SPHINX = sphinx-build
BUILD_DIR = build
.PHONY: help install clean html all local
help ::
@echo ""
@echo "NeXus: Testing the Wiki files and building the documentation:"
@echo ""
@echo "make install Install all requirements to run tests and builds."
@echo "make clean Remove all build files."
@echo "make html Build HTML version of manual. Requires prepare first."
@echo "make all Builds complete web site for the wiki (in build directory)."
@echo ""
@echo "Note: All builds of the wiki will occur in the 'build/' directory."
@echo " For a complete build, run 'make all' in the root directory."
@echo " Developers of the NeXus wiki can use 'make local' to"
@echo " confirm the documentation builds."
@echo ""
install ::
$(PYTHON) -m pip install -r ./sphinx/requirements.txt
clean ::
$(RM) -rf ./sphinx/$(BUILD_DIR)
html:
$(SPHINX) -b html -W ./sphinx/ ./sphinx/$(BUILD_DIR)/html
# for developer's use on local build host
local ::
# $(MAKE) prepare
$(MAKE) html
all ::
$(MAKE) clean
$(MAKE) html
@echo "HTML built: `ls -lAFgh ./sphinx/build/html/index.html`"