-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·55 lines (43 loc) · 1.75 KB
/
Makefile
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
46
47
48
49
50
51
52
53
54
55
# Minimal makefile for Sphinx documentation
#
# To build the public documentation, run: $ make html
# To build the internal documentation, run: $ make htmlinternal
# Automatically build the public documentation, run: $ make htmllive
# Automatically build the internal documentation, run: $ make htmlinternallive
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXAUTOBUILD = sphinx-autobuild
SPHINXPROJ = copo-docs
SOURCEDIR = .
BUILDDIR = _build
INTERNALBUILDDIR = _buildinternal
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Command to make internal docs
htmlinternal:
@echo "Building internal docs"
@mkdir -p $(INTERNALBUILDDIR)
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(INTERNALBUILDDIR)" $(SPHINXOPTS) $(O) -t internal
# Automatically build (public) docs and serve them on port 8001
htmllive:
@echo "Automatically building docs"
@mkdir -p $(BUILDDIR)
@$(SPHINXAUTOBUILD) --port=8002 --open-browser "$(SOURCEDIR)"/ "$(BUILDDIR)"
@echo
@echo "The HTML pages are in $(BUILDDIR)/html."
.PHONY: htmllive Makefile
# Automatically build internal docs and serve them on port 8001
htmlinternallive:
@echo "Automatically building internal docs"
@mkdir -p $(INTERNALBUILDDIR)
@$(SPHINXAUTOBUILD) --port=8002 --open-browser "$(SOURCEDIR)"/ "$(INTERNALBUILDDIR)"
@echo
@echo "The internal HTML pages are in $(INTERNALBUILDDIR)/html."
.PHONY: htmlinternallive Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)