Debian Codegraph @

docs/build/Makefile

raw
1 # Makefile for Sphinx documentation
2 #
3
4 # You can set these variables from the command line.
5 SPHINXOPTS =
6 SPHINXBUILD = sphinx-build
7 AUTOBUILD = sphinx-autobuild --port 8080 --watch ../../alembic
8 PAPER =
9 BUILDDIR = output
10
11 # Internal variables.
12 PAPEROPT_a4 = -D latex_paper_size=a4
13 PAPEROPT_letter = -D latex_paper_size=letter
14 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
15
16 .PHONY: help clean html autobuild dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
17
18 help:
19 @echo "Please use \`make <target>' where <target> is one of"
20 @echo " html to make standalone HTML files"
21 @echo " autobuild autobuild and run a webserver"
22 @echo " dist-html same as html, but places files in /doc"
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)"
32
33 clean:
34 -rm -rf $(BUILDDIR)/*
35
36 html:
37 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
38 @echo
39 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
40
41 autobuild:
42 $(AUTOBUILD) $(ALLSPHINXOPTS) $(BUILDDIR)/html
43
44 dist-html:
45 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
46 cp -R $(BUILDDIR)/html/* ../
47 rm -fr $(BUILDDIR)/html
48 @echo
49 @echo "Build finished. The HTML pages are in ../."
50
51 dirhtml:
52 $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
53 @echo
54 @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
55
56 pickle:
57 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
58 @echo
59 @echo "Build finished; now you can process the pickle files."
60
61 json:
62 $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
63 @echo
64 @echo "Build finished; now you can process the JSON files."
65
66 htmlhelp:
67 $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
68 @echo
69 @echo "Build finished; now you can run HTML Help Workshop with the" \
70 ".hhp project file in $(BUILDDIR)/htmlhelp."
71
72 qthelp:
73 $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
74 @echo
75 @echo "Build finished; now you can run "qcollectiongenerator" with the" \
76 ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
77 @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Alembic.qhcp"
78 @echo "To view the help file:"
79 @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Alembic.qhc"
80
81 latex:
82 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
83 @echo
84 @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
85 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
86 "run these through (pdf)latex."
87
88 changes:
89 $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
90 @echo
91 @echo "The overview file is in $(BUILDDIR)/changes."
92
93 linkcheck:
94 $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
95 @echo
96 @echo "Link check complete; look for any errors in the above output " \
97 "or in $(BUILDDIR)/linkcheck/output.txt."
98
99 doctest:
100 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
101 @echo "Testing of doctests in the sources finished, look at the " \
102 "results in $(BUILDDIR)/doctest/output.txt."