Makefile
This file
Path
docs/Makefile
70 lines · 2.2 KiB
Last changed by
bootstrapped new documentationArmin Ronacherbefore adoption083ae16
History of this fileTake it
bootstrapped new documentationArmin Ronacherbefore adoption083ae16
lines 1–70why, one step back1# Makefile for Sphinx documentation2#34# You can set these variables from the command line.5SPHINXOPTS =6SPHINXBUILD = sphinx-build7PAPER =89# Internal variables.10PAPEROPT_a4 = -D latex_paper_size=a411PAPEROPT_letter = -D latex_paper_size=letter12ALLSPHINXOPTS = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .1314.PHONY: help clean html web pickle htmlhelp latex changes linkcheck1516help:17 @echo "Please use \`make <target>' where <target> is one of"18 @echo " html to make standalone HTML files"19 @echo " pickle to make pickle files (usable by e.g. sphinx-web)"20 @echo " htmlhelp to make HTML files and a HTML help project"21 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"22 @echo " changes to make an overview over all changed/added/deprecated items"23 @echo " linkcheck to check all external links for integrity"2425clean:26 -rm -rf _build/*2728html:29 mkdir -p _build/html _build/doctrees30 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html31 @echo32 @echo "Build finished. The HTML pages are in _build/html."3334pickle:35 mkdir -p _build/pickle _build/doctrees36 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle37 @echo38 @echo "Build finished; now you can process the pickle files or run"39 @echo " sphinx-web _build/pickle"40 @echo "to start the sphinx-web server."4142web: pickle4344htmlhelp:45 mkdir -p _build/htmlhelp _build/doctrees46 $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp47 @echo48 @echo "Build finished; now you can run HTML Help Workshop with the" \49 ".hhp project file in _build/htmlhelp."5051latex:52 mkdir -p _build/latex _build/doctrees53 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex54 @echo55 @echo "Build finished; the LaTeX files are in _build/latex."56 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \57 "run these through (pdf)latex."5859changes:60 mkdir -p _build/changes _build/doctrees61 $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) _build/changes62 @echo63 @echo "The overview file is in _build/changes."6465linkcheck:66 mkdir -p _build/linkcheck _build/doctrees67 $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) _build/linkcheck68 @echo69 @echo "Link check complete; look for any errors in the above output " \70 "or in _build/linkcheck/output.txt."