Debian Codegraph @

docs/Makefile

raw symbols SCIP
1 # Makefile for Sphinx documentation
2 #
3
4 # You can set these variables from the command line.
5 SPHINXOPTS =
6 SPHINXBUILD = sphinx-build
7 PAPER =
8 BUILDDIR = _build
9
10 # Internal variables.
11 PAPEROPT_a4 = -D latex_paper_size=a4
12 PAPEROPT_letter = -D latex_paper_size=letter
13 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
14
15 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex latexpdf changes linkcheck doctest
16
17 all: html
18
19 help:
20 @echo "Please use \`make <target>' where <target> is one of"
21 @echo " html to make standalone HTML files"
22 @echo " dirhtml to make HTML files named index.html in directories"
23 @echo " pickle to make pickle files"
24 @echo " json to make JSON files"
25 @echo " htmlhelp to make HTML files and a HTML help project"
26 @echo " qthelp to make HTML files and a qthelp project"
27 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
28 @echo " latexpdf to make LaTeX files and run them through pdflatex"
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 -rm -rf generated/*
36 -rm -rf auto_examples/*
37
38 html:
39 # These two lines make the build a bit more lengthy, and the
40 # the embedding of images more robust
41 rm -rf $(BUILDDIR)/html/_images
42 #rm -rf _build/doctrees/
43 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
44 @echo
45 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
46
47 dirhtml:
48 $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
49 @echo
50 @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
51
52 pickle:
53 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
54 @echo
55 @echo "Build finished; now you can process the pickle files."
56
57 json:
58 $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
59 @echo
60 @echo "Build finished; now you can process the JSON files."
61
62 htmlhelp:
63 $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
64 @echo
65 @echo "Build finished; now you can run HTML Help Workshop with the" \
66 ".hhp project file in $(BUILDDIR)/htmlhelp."
67
68 qthelp:
69 $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
70 @echo
71 @echo "Build finished; now you can run "qcollectiongenerator" with the" \
72 ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
73 @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/hmmlearn.qhcp"
74 @echo "To view the help file:"
75 @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/hmmlearn.qhc"
76
77 latex:
78 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
79 @echo
80 @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
81 @echo "Run \`make' in that directory to run these through (pdf)latex" \
82 "(use \`make latexpdf' here to do that automatically)."
83
84 latexpdf:
85 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
86 @echo "Running LaTeX files through pdflatex..."
87 make -C $(BUILDDIR)/latex all-pdf
88 @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
89
90 changes:
91 $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
92 @echo
93 @echo "The overview file is in $(BUILDDIR)/changes."
94
95 linkcheck:
96 $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
97 @echo
98 @echo "Link check complete; look for any errors in the above output " \
99 "or in $(BUILDDIR)/linkcheck/output.txt."
100
101 doctest:
102 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
103 @echo "Testing of doctests in the sources finished, look at the " \
104 "results in $(BUILDDIR)/doctest/output.txt."