Debian Codegraph @

docs/Makefile

raw
1 # Makefile for Sphinx documentation
2 #
3
4 # You can set these variables from the command line, and also
5 # from the environment for the first two.
6 SPHINXOPTS ?= -W
7 SPHINXBUILD ?= sphinx-build
8 SOURCEDIR = source
9 BUILDDIR = build
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 web pickle htmlhelp latex changes linkcheck
17
18 help:
19 @echo "Please use \`make <target>' where <target> is one of"
20 @echo " html to make standalone HTML files"
21 @echo " pickle to make pickle files (usable by e.g. sphinx-web)"
22 @echo " htmlhelp to make HTML files and a HTML help project"
23 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
24 @echo " changes to make an overview over all changed/added/deprecated items"
25 @echo " linkcheck to check all external links for integrity"
26
27 clean:
28 -rm -rf $(BUILDDIR)/*
29
30 html:
31 mkdir -p $(BUILDDIR)/html $(BUILDDIR)/doctrees
32 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
33 @echo
34 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
35
36 text:
37 mkdir -p $(BUILDDIR)/text $(BUILDDIR)/doctrees
38 $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
39 @echo
40 @echo "Build finished. The HTML pages are in $(BUILDDIR)/text."
41
42 pickle:
43 mkdir -p $(BUILDDIR)/pickle $(BUILDDIR)/doctrees
44 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
45 @echo
46 @echo "Build finished; now you can process the pickle files or run"
47 @echo " sphinx-web $(BUILDDIR)/pickle"
48 @echo "to start the sphinx-web server."
49
50 web: pickle
51
52 htmlhelp:
53 mkdir -p $(BUILDDIR)/htmlhelp $(BUILDDIR)/doctrees
54 $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
55 @echo
56 @echo "Build finished; now you can run HTML Help Workshop with the" \
57 ".hhp project file in $(BUILDDIR)/htmlhelp."
58
59 latex:
60 mkdir -p $(BUILDDIR)/latex $(BUILDDIR)/doctrees
61 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
62 cp _static/*.png $(BUILDDIR)/latex
63 ./convert_images.sh
64 cp _static/latex-warning.png $(BUILDDIR)/latex
65 cp _static/latex-note.png $(BUILDDIR)/latex
66 @echo
67 @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
68 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
69 "run these through (pdf)latex."
70
71 changes:
72 mkdir -p $(BUILDDIR)/changes $(BUILDDIR)/doctrees
73 $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
74 @echo
75 @echo "The overview file is in $(BUILDDIR)/changes."
76
77 linkcheck:
78 mkdir -p $(BUILDDIR)/linkcheck $(BUILDDIR)/doctrees
79 $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
80 @echo
81 @echo "Link check complete; look for any errors in the above output " \
82 "or in $(BUILDDIR)/linkcheck/output.txt."
83
84 epub:
85 $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
86 @echo
87 @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
88