1
# Makefile for Sphinx documentation
4
# You can set these variables from the command line.
6
SPHINXBUILD = sphinx-build
10
PAPEROPT_a4 = -D latex_paper_size=a4
11
PAPEROPT_letter = -D latex_paper_size=letter
12
ALLSPHINXOPTS = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
14
.PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
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 " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
25
@echo " changes to make an overview of all changed/added/deprecated items"
26
@echo " linkcheck to check all external links for integrity"
27
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
33
sphinx-apidoc -feM -s txt -o api ../../breezy
37
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
39
@echo "Build finished. The HTML pages are in _build/html."
43
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) _build/dirhtml
45
@echo "Build finished. The HTML pages are in _build/dirhtml."
49
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle
51
@echo "Build finished; now you can process the pickle files."
55
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) _build/json
57
@echo "Build finished; now you can process the JSON files."
61
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp
63
@echo "Build finished; now you can run HTML Help Workshop with the" \
64
".hhp project file in _build/htmlhelp."
68
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) _build/qthelp
70
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
71
".qhcp project file in _build/qthelp, like this:"
72
@echo "# qcollectiongenerator _build/qthelp/Bazaar.qhcp"
73
@echo "To view the help file:"
74
@echo "# assistant -collectionFile _build/qthelp/Bazaar.qhc"
78
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
80
@echo "Build finished; the LaTeX files are in _build/latex."
81
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
82
"run these through (pdf)latex."
86
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) _build/changes
88
@echo "The overview file is in _build/changes."
92
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) _build/linkcheck
94
@echo "Link check complete; look for any errors in the above output " \
95
"or in _build/linkcheck/output.txt."
99
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) _build/doctest
100
@echo "Testing of doctests in the sources finished, look at the " \
101
"results in _build/doctest/output.txt."
105
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) _build/texinfo
106
# Now build the info files using the Makefile provided by Sphinx
107
$(MAKE) -C _build/texinfo