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) $(SPHINXSOURCE)
16
.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
21
@echo "Please use \`make <target>' where <target> is one of"
22
@echo " html to make standalone HTML files"
23
@echo " dirhtml to make HTML files named index.html in directories"
24
@echo " pickle to make pickle files"
25
@echo " json to make JSON files"
26
@echo " htmlhelp to make HTML files and a HTML help project"
27
@echo " qthelp to make HTML files and a qthelp project"
28
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
29
@echo " changes to make an overview of all changed/added/deprecated items"
30
@echo " linkcheck to check all external links for integrity"
31
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
36
if [ -f .autogenerated ] ; then \
37
cat .autogenerated | xargs rm ; \
42
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
44
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
47
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
49
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
52
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
54
@echo "Build finished; now you can process the pickle files."
57
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
59
@echo "Build finished; now you can process the JSON files."
62
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
64
@echo "Build finished; now you can run HTML Help Workshop with the" \
65
".hhp project file in $(BUILDDIR)/htmlhelp."
68
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
70
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
71
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
72
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/nova.qhcp"
73
@echo "To view the help file:"
74
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/nova.qhc"
77
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
79
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
80
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
81
"run these through (pdf)latex."
84
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
86
@echo "The overview file is in $(BUILDDIR)/changes."
89
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
91
@echo "Link check complete; look for any errors in the above output " \
92
"or in $(BUILDDIR)/linkcheck/output.txt."
95
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
96
@echo "Testing of doctests in the sources finished, look at the " \
97
"results in $(BUILDDIR)/doctest/output.txt."