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
9 # Internal variables.
10 PAPEROPT_a4 = -D latex_paper_size=a4
11 PAPEROPT_letter = -D latex_paper_size=letter
12 ALLSPHINXOPTS = -d build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
13
14 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
15
16 help:
17 @echo "Please use \`make <target>' where <target> is one of"
18 @echo " html to make standalone HTML files"
19 @echo " dirhtml to make HTML files named index.html in directories"
20 @echo " pickle to make pickle files"
21 @echo " json to make JSON files"
22 @echo " htmlhelp to make HTML files and a HTML help project"
23 @echo " qthelp to make HTML files and a qthelp project"
24 @echo " devhelp to make HTML files and a Devhelp project"
25 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
26 @echo " latex_paper_size to make LaTeX files and run them through pdflatex"
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)"
30
31 clean:
32 -rm -rf build/*
33
34 html:
35 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) build/html
36 @echo
37 @echo "Build finished. The HTML pages are in build/html."
38
39 dirhtml:
40 $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) build/dirhtml
41 @echo
42 @echo "Build finished. The HTML pages are in build/dirhtml."
43
44 pickle:
45 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) build/pickle
46 @echo
47 @echo "Build finished; now you can process the pickle files."
48
49 json:
50 $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) build/json
51 @echo
52 @echo "Build finished; now you can process the JSON files."
53
54 htmlhelp:
55 $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) build/htmlhelp
56 @echo
57 @echo "Build finished; now you can run HTML Help Workshop with the" \
58 ".hhp project file in build/htmlhelp."
59
60 qthelp:
61 $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) build/qthelp
62 @echo
63 @echo "Build finished; now you can run "qcollectiongenerator" with the" \
64 ".qhcp project file in build/qthelp, like this:"
65 @echo "# qcollectiongenerator build/qthelp/Rtree.qhcp"
66 @echo "To view the help file:"
67 @echo "# assistant -collectionFile build/qthelp/Rtree.qhc"
68
69 devhelp:
70 $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) build/devhelp
71 @echo
72 @echo "Build finished."
73 @echo "To view the help file:"
74 @echo "# mkdir -p $$HOME/.local/share/devhelp/Rtree"
75 @echo "# ln -s build/devhelp $$HOME/.local/share/devhelp/Rtree"
76 @echo "# devhelp"
77
78 latex:
79 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex
80 @echo
81 @echo "Build finished; the LaTeX files are in build/latex."
82 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
83 "run these through (pdf)latex."
84
85 latexpdf: latex
86 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex
87 @echo "Running LaTeX files through pdflatex..."
88 make -C build/latex all-pdf
89 @echo "pdflatex finished; the PDF files are in build/latex."
90
91 changes:
92 $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) build/changes
93 @echo
94 @echo "The overview file is in build/changes."
95
96 linkcheck:
97 $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) build/linkcheck
98 @echo
99 @echo "Link check complete; look for any errors in the above output " \
100 "or in build/linkcheck/output.txt."
101
102 doctest:
103 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) build/doctest
104 @echo "Testing of doctests in the sources finished, look at the " \
105 "results in build/doctest/output.txt."
106
107 pdf:
108 $(SPHINXBUILD) -b pdf $(ALLSPHINXOPTS) build/pdf
109 @echo
110 @echo "Build finished; now you can process the PDF files."