55SPHINXOPTS =
66SPHINXBUILD = sphinx-build
77PAPER =
8+ PYTHON = python
89BUILDDIR = build
910
1011# User-friendly check for sphinx-build
@@ -19,7 +20,32 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) sou
1920# the i18n builder cannot share the environment and doctrees with the others
2021I18NSPHINXOPTS = $(PAPEROPT_$(PAPER ) ) $(SPHINXOPTS ) source
2122
22- .PHONY : clean docs publish
23+ .PHONY : help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
24+
25+ help :
26+ @echo " Please use \` make <target>' where <target> is one of"
27+ # @echo " html to make standalone HTML files"
28+ # @echo " dirhtml to make HTML files named index.html in directories"
29+ # @echo " singlehtml to make a single large HTML file"
30+ # @echo " pickle to make pickle files"
31+ # @echo " json to make JSON files"
32+ # @echo " htmlhelp to make HTML files and a HTML help project"
33+ # @echo " qthelp to make HTML files and a qthelp project"
34+ # @echo " devhelp to make HTML files and a Devhelp project"
35+ # @echo " epub to make an epub"
36+ # @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
37+ # @echo " latexpdf to make LaTeX files and run them through pdflatex"
38+ # @echo " text to make text files"
39+ # @echo " man to make manual pages"
40+ # @echo " texinfo to make Texinfo files"
41+ # @echo " info to make Texinfo files and run them through makeinfo"
42+ # @echo " gettext to make PO message catalogs"
43+ # @echo " changes to make an overview of all changed/added/deprecated items"
44+ # @echo " linkcheck to check all external links for integrity"
45+ # @echo " doctest to run all doctests embedded in the documentation (if enabled)"
46+ @echo " docs to build the docs and copy the static files to the outputdir"
47+ @echo " server to serve the docs in your browser under \`http://localhost:8000\`"
48+ @echo " publish to publish the app to dotcloud"
2349
2450docs :
2551 $(SPHINXBUILD ) -b dirhtml $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
@@ -29,5 +55,119 @@ docs:
2955publish :
3056 @echo " Coming soon..."
3157
58+ server : docs
59+ @cd $(BUILDDIR ) /html; $(PYTHON ) -m SimpleHTTPServer 8000
60+
3261clean :
33- rm -rf $(BUILDDIR ) /*
62+ rm -rf $(BUILDDIR )
63+
64+ html :
65+ $(SPHINXBUILD ) -b html $(ALLSPHINXOPTS ) $(BUILDDIR ) /html
66+ @echo
67+ @echo " Build finished. The HTML pages are in $( BUILDDIR) /html."
68+
69+ dirhtml :
70+ $(SPHINXBUILD ) -b dirhtml $(ALLSPHINXOPTS ) $(BUILDDIR ) /dirhtml
71+ @echo
72+ @echo " Build finished. The HTML pages are in $( BUILDDIR) /dirhtml."
73+
74+ singlehtml :
75+ $(SPHINXBUILD ) -b singlehtml $(ALLSPHINXOPTS ) $(BUILDDIR ) /singlehtml
76+ @echo
77+ @echo " Build finished. The HTML page is in $( BUILDDIR) /singlehtml."
78+
79+ pickle :
80+ $(SPHINXBUILD ) -b pickle $(ALLSPHINXOPTS ) $(BUILDDIR ) /pickle
81+ @echo
82+ @echo " Build finished; now you can process the pickle files."
83+
84+ json :
85+ $(SPHINXBUILD ) -b json $(ALLSPHINXOPTS ) $(BUILDDIR ) /json
86+ @echo
87+ @echo " Build finished; now you can process the JSON files."
88+
89+ htmlhelp :
90+ $(SPHINXBUILD ) -b htmlhelp $(ALLSPHINXOPTS ) $(BUILDDIR ) /htmlhelp
91+ @echo
92+ @echo " Build finished; now you can run HTML Help Workshop with the" \
93+ " .hhp project file in $( BUILDDIR) /htmlhelp."
94+
95+ qthelp :
96+ $(SPHINXBUILD ) -b qthelp $(ALLSPHINXOPTS ) $(BUILDDIR ) /qthelp
97+ @echo
98+ @echo " Build finished; now you can run " qcollectiongenerator" with the" \
99+ " .qhcp project file in $( BUILDDIR) /qthelp, like this:"
100+ @echo " # qcollectiongenerator $( BUILDDIR) /qthelp/Docker.qhcp"
101+ @echo " To view the help file:"
102+ @echo " # assistant -collectionFile $( BUILDDIR) /qthelp/Docker.qhc"
103+
104+ devhelp :
105+ $(SPHINXBUILD ) -b devhelp $(ALLSPHINXOPTS ) $(BUILDDIR ) /devhelp
106+ @echo
107+ @echo " Build finished."
108+ @echo " To view the help file:"
109+ @echo " # mkdir -p $$ HOME/.local/share/devhelp/Docker"
110+ @echo " # ln -s $( BUILDDIR) /devhelp $$ HOME/.local/share/devhelp/Docker"
111+ @echo " # devhelp"
112+
113+ epub :
114+ $(SPHINXBUILD ) -b epub $(ALLSPHINXOPTS ) $(BUILDDIR ) /epub
115+ @echo
116+ @echo " Build finished. The epub file is in $( BUILDDIR) /epub."
117+
118+ latex :
119+ $(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
120+ @echo
121+ @echo " Build finished; the LaTeX files are in $( BUILDDIR) /latex."
122+ @echo " Run \` make' in that directory to run these through (pdf)latex" \
123+ " (use \` make latexpdf' here to do that automatically)."
124+
125+ latexpdf :
126+ $(SPHINXBUILD ) -b latex $(ALLSPHINXOPTS ) $(BUILDDIR ) /latex
127+ @echo " Running LaTeX files through pdflatex..."
128+ $(MAKE ) -C $(BUILDDIR ) /latex all-pdf
129+ @echo " pdflatex finished; the PDF files are in $( BUILDDIR) /latex."
130+
131+ text :
132+ $(SPHINXBUILD ) -b text $(ALLSPHINXOPTS ) $(BUILDDIR ) /text
133+ @echo
134+ @echo " Build finished. The text files are in $( BUILDDIR) /text."
135+
136+ man :
137+ $(SPHINXBUILD ) -b man $(ALLSPHINXOPTS ) $(BUILDDIR ) /man
138+ @echo
139+ @echo " Build finished. The manual pages are in $( BUILDDIR) /man."
140+
141+ texinfo :
142+ $(SPHINXBUILD ) -b texinfo $(ALLSPHINXOPTS ) $(BUILDDIR ) /texinfo
143+ @echo
144+ @echo " Build finished. The Texinfo files are in $( BUILDDIR) /texinfo."
145+ @echo " Run \` make' in that directory to run these through makeinfo" \
146+ " (use \` make info' here to do that automatically)."
147+
148+ info :
149+ $(SPHINXBUILD ) -b texinfo $(ALLSPHINXOPTS ) $(BUILDDIR ) /texinfo
150+ @echo " Running Texinfo files through makeinfo..."
151+ make -C $(BUILDDIR ) /texinfo info
152+ @echo " makeinfo finished; the Info files are in $( BUILDDIR) /texinfo."
153+
154+ gettext :
155+ $(SPHINXBUILD ) -b gettext $(I18NSPHINXOPTS ) $(BUILDDIR ) /locale
156+ @echo
157+ @echo " Build finished. The message catalogs are in $( BUILDDIR) /locale."
158+
159+ changes :
160+ $(SPHINXBUILD ) -b changes $(ALLSPHINXOPTS ) $(BUILDDIR ) /changes
161+ @echo
162+ @echo " The overview file is in $( BUILDDIR) /changes."
163+
164+ linkcheck :
165+ $(SPHINXBUILD ) -b linkcheck $(ALLSPHINXOPTS ) $(BUILDDIR ) /linkcheck
166+ @echo
167+ @echo " Link check complete; look for any errors in the above output " \
168+ " or in $( BUILDDIR) /linkcheck/output.txt."
169+
170+ doctest :
171+ $(SPHINXBUILD ) -b doctest $(ALLSPHINXOPTS ) $(BUILDDIR ) /doctest
172+ @echo " Testing of doctests in the sources finished, look at the " \
173+ " results in $( BUILDDIR) /doctest/output.txt."
0 commit comments