1
# Makefile for Sphinx documentation
4
# You can set these variables from the command line.
6
SPHINXBUILD = sphinx-build
12
PAPEROPT_a4 = -D latex_paper_size=a4
13
PAPEROPT_letter = -D latex_paper_size=letter
14
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) $(SOURCEDIR)
16
.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
19
@echo "Please use \`make <target>' where <target> is one of"
20
@echo " html to make standalone HTML files"
21
@echo " dirhtml to make HTML files named index.html in directories"
22
@echo " pickle to make pickle files"
23
@echo " json to make JSON files"
24
@echo " htmlhelp to make HTML files and a HTML help project"
25
@echo " qthelp to make HTML files and a qthelp project"
26
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
27
@echo " changes to make an overview of all changed/added/deprecated items"
28
@echo " linkcheck to check all external links for integrity"
29
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
35
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
37
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
40
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
42
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
45
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
47
@echo "Build finished; now you can process the pickle files."
50
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
52
@echo "Build finished; now you can process the JSON files."
55
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
57
@echo "Build finished; now you can run HTML Help Workshop with the" \
58
".hhp project file in $(BUILDDIR)/htmlhelp."
61
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
63
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
64
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
65
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Sloecode.qhcp"
66
@echo "To view the help file:"
67
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Sloecode.qhc"
70
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
72
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
73
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
74
"run these through (pdf)latex."
77
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
79
@echo "Build finished; the epub files are in $(BUILDDIR)/epub."
82
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
84
@echo "The overview file is in $(BUILDDIR)/changes."
87
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
89
@echo "Link check complete; look for any errors in the above output " \
90
"or in $(BUILDDIR)/linkcheck/output.txt."
93
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
94
@echo "Testing of doctests in the sources finished, look at the " \
95
"results in $(BUILDDIR)/doctest/output.txt."