annotate docs/Makefile @ 438:a5f3d5a89d6c tip

pyparsing 2.0.0 only if on Python3
author Catherine Devlin <catherine.devlin@gmail.com>
date Tue, 19 Feb 2013 04:33:12 -0500
parents 0687bb650118
children
rev   line source
314
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
1 # Makefile for Sphinx documentation
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
2 #
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
3
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
4 # You can set these variables from the command line.
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
5 SPHINXOPTS =
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
6 SPHINXBUILD = sphinx-build
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
7 PAPER =
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
8 BUILDDIR = _build
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
9
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
10 # Internal variables.
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
11 PAPEROPT_a4 = -D latex_paper_size=a4
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
12 PAPEROPT_letter = -D latex_paper_size=letter
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
13 ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
14
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
15 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
16
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
17 help:
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
18 @echo "Please use \`make <target>' where <target> is one of"
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
19 @echo " html to make standalone HTML files"
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
20 @echo " dirhtml to make HTML files named index.html in directories"
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
21 @echo " pickle to make pickle files"
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
22 @echo " json to make JSON files"
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
23 @echo " htmlhelp to make HTML files and a HTML help project"
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
24 @echo " qthelp to make HTML files and a qthelp project"
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
25 @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
26 @echo " changes to make an overview of all changed/added/deprecated items"
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
27 @echo " linkcheck to check all external links for integrity"
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
28 @echo " doctest to run all doctests embedded in the documentation (if enabled)"
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
29
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
30 clean:
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
31 -rm -rf $(BUILDDIR)/*
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
32
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
33 html:
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
34 $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
35 @echo
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
36 @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
37
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
38 dirhtml:
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
39 $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
40 @echo
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
41 @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
42
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
43 pickle:
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
44 $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
45 @echo
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
46 @echo "Build finished; now you can process the pickle files."
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
47
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
48 json:
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
49 $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
50 @echo
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
51 @echo "Build finished; now you can process the JSON files."
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
52
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
53 htmlhelp:
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
54 $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
55 @echo
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
56 @echo "Build finished; now you can run HTML Help Workshop with the" \
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
57 ".hhp project file in $(BUILDDIR)/htmlhelp."
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
58
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
59 qthelp:
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
60 $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
61 @echo
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
62 @echo "Build finished; now you can run "qcollectiongenerator" with the" \
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
63 ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
64 @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/cmd2.qhcp"
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
65 @echo "To view the help file:"
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
66 @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/cmd2.qhc"
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
67
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
68 latex:
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
69 $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
70 @echo
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
71 @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
72 @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
73 "run these through (pdf)latex."
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
74
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
75 changes:
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
76 $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
77 @echo
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
78 @echo "The overview file is in $(BUILDDIR)/changes."
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
79
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
80 linkcheck:
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
81 $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
82 @echo
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
83 @echo "Link check complete; look for any errors in the above output " \
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
84 "or in $(BUILDDIR)/linkcheck/output.txt."
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
85
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
86 doctest:
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
87 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
88 @echo "Testing of doctests in the sources finished, look at the " \
0687bb650118 begin new docs
catherine@dellzilla
parents:
diff changeset
89 "results in $(BUILDDIR)/doctest/output.txt."