Skip to content
Myr

Makefile

This file

Path

docs/Makefile

118 lines · 4.1 KiB

Last changed by

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

History of this file

Take it

The walk stopped after 200 commits: lines older than 79cc8d1 point at it.

Fix typo.Georg Brandlbefore adoption79cc8d1

lines 1–7why, one step back
1# Makefile for Sphinx documentation
2#34# You can set these variables from the command line.5SPHINXOPTS =6SPHINXBUILD = sphinx-build7PAPER =

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 8why, one step back
8BUILDDIR = _build

Fix typo.Georg Brandlbefore adoption79cc8d1

lines 9–12why, one step back
9
10# Internal variables.11PAPEROPT_a4 = -D latex_paper_size=a412PAPEROPT_letter = -D latex_paper_size=letter

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 13why, one step back
13ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .

Fix typo.Georg Brandlbefore adoption79cc8d1

line 14why, one step back
14

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 15why, one step back
15.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp epub latex changes linkcheck doctest

Fix typo.Georg Brandlbefore adoption79cc8d1

lines 16–18why, one step back
16
17help:18 @echo "Please use \`make <target>' where <target> is one of"

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

lines 19–32why, one step back
19 @echo " html to make standalone HTML files"
20 @echo " dirhtml to make HTML files named index.html in directories"21 @echo " singlehtml to make a single large HTML file"22 @echo " pickle to make pickle files"23 @echo " json to make JSON files"24 @echo " htmlhelp to make HTML files and a HTML help project"25 @echo " qthelp to make HTML files and a qthelp project"26 @echo " devhelp to make HTML files and a Devhelp project"27 @echo " epub to make an epub"28 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"29 @echo " latexpdf to make LaTeX files and run them through pdflatex"30 @echo " changes to make an overview of all changed/added/deprecated items"31 @echo " linkcheck to check all external links for integrity"32 @echo " doctest to run all doctests embedded in the documentation (if enabled)"

Fix typo.Georg Brandlbefore adoption79cc8d1

lines 33–34why, one step back
33
34clean:

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 35why, one step back
35 -rm -rf $(BUILDDIR)/*

Fix typo.Georg Brandlbefore adoption79cc8d1

lines 36–37why, one step back
36
37html:

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 38why, one step back
38 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html

Fix typo.Georg Brandlbefore adoption79cc8d1

line 39why, one step back
39 @echo

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 40why, one step back
40 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

Fix typo.Georg Brandlbefore adoption79cc8d1

line 41why, one step back
41

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

lines 42–51why, one step back
42dirhtml:
43 $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml44 @echo45 @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."4647singlehtml:48 $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml49 @echo50 @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."51

Fix typo.Georg Brandlbefore adoption79cc8d1

line 52why, one step back
52pickle:

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 53why, one step back
53 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle

Fix typo.Georg Brandlbefore adoption79cc8d1

line 54why, one step back
54 @echo

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 55why, one step back
55 @echo "Build finished; now you can process the pickle files."

Fix typo.Georg Brandlbefore adoption79cc8d1

lines 56–57why, one step back
56
57json:

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 58why, one step back
58 $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json

Fix typo.Georg Brandlbefore adoption79cc8d1

line 59why, one step back
59 @echo

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 60why, one step back
60 @echo "Build finished; now you can process the JSON files."

Fix typo.Georg Brandlbefore adoption79cc8d1

lines 61–62why, one step back
61
62htmlhelp:

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 63why, one step back
63 $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp

Fix typo.Georg Brandlbefore adoption79cc8d1

lines 64–65why, one step back
64 @echo
65 @echo "Build finished; now you can run HTML Help Workshop with the" \

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 66why, one step back
66 ".hhp project file in $(BUILDDIR)/htmlhelp."

Fix typo.Georg Brandlbefore adoption79cc8d1

line 67why, one step back
67

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

lines 68–90why, one step back
68qthelp:
69 $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp70 @echo71 @echo "Build finished; now you can run "qcollectiongenerator" with the" \72 ".qhcp project file in $(BUILDDIR)/qthelp, like this:"73 @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Flask.qhcp"74 @echo "To view the help file:"75 @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Flask.qhc"7677devhelp:78 $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) _build/devhelp79 @echo80 @echo "Build finished."81 @echo "To view the help file:"82 @echo "# mkdir -p $$HOME/.local/share/devhelp/Flask"83 @echo "# ln -s _build/devhelp $$HOME/.local/share/devhelp/Flask"84 @echo "# devhelp"8586epub:87 $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub88 @echo89 @echo "Build finished. The epub file is in $(BUILDDIR)/epub."90

Fix typo.Georg Brandlbefore adoption79cc8d1

line 91why, one step back
91latex:

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 92why, one step back
92 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex

Fix typo.Georg Brandlbefore adoption79cc8d1

line 93why, one step back
93 @echo

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 94why, one step back
94 @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."

Fix typo.Georg Brandlbefore adoption79cc8d1

lines 95–97why, one step back
95 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
96 "run these through (pdf)latex."97

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

lines 98–103why, one step back
98latexpdf: latex
99 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex100 @echo "Running LaTeX files through pdflatex..."101 make -C _build/latex all-pdf102 @echo "pdflatex finished; the PDF files are in _build/latex."103

Fix typo.Georg Brandlbefore adoption79cc8d1

line 104why, one step back
104changes:

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 105why, one step back
105 $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes

Fix typo.Georg Brandlbefore adoption79cc8d1

line 106why, one step back
106 @echo

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 107why, one step back
107 @echo "The overview file is in $(BUILDDIR)/changes."

Fix typo.Georg Brandlbefore adoption79cc8d1

lines 108–109why, one step back
108
109linkcheck:

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

line 110why, one step back
110 $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck

Fix typo.Georg Brandlbefore adoption79cc8d1

lines 111–112why, one step back
111 @echo
112 @echo "Link check complete; look for any errors in the above output " \

Documentation update. Documentation will become the new Jinja2 websiteArmin Ronacherbefore adoptiond6a2003

lines 113–118why, one step back
113 "or in $(BUILDDIR)/linkcheck/output.txt."
114115doctest:116 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest117 @echo "Testing of doctests in the sources finished, look at the " \118 "results in $(BUILDDIR)/doctest/output.txt."