2008-03-18 14:52:26 -05:00
|
|
|
# Makefile for Sphinx documentation
|
|
|
|
#
|
|
|
|
|
|
|
|
# You can set these variables from the command line.
|
|
|
|
SPHINXOPTS =
|
|
|
|
SPHINXBUILD = python ../sphinx-build.py
|
|
|
|
PAPER =
|
|
|
|
|
2008-03-26 07:16:59 -05:00
|
|
|
PAPEROPT_a4 = -D latex_paper_size=a4
|
|
|
|
PAPEROPT_letter = -D latex_paper_size=letter
|
|
|
|
ALLSPHINXOPTS = -d _build/doctrees $(PAPEROPT_$(PAPER)) \
|
2010-03-01 15:31:17 -06:00
|
|
|
$(SPHINXOPTS) $(O) .
|
2008-03-18 14:52:26 -05:00
|
|
|
|
2010-05-30 02:06:34 -05:00
|
|
|
.PHONY: help clean html dirhtml singlehtml text man pickle json htmlhelp \
|
|
|
|
qthelp devhelp epub latex latexpdf changes linkcheck doctest
|
2008-03-18 14:52:26 -05:00
|
|
|
|
|
|
|
help:
|
|
|
|
@echo "Please use \`make <target>' where <target> is one of"
|
2010-07-17 12:52:54 -05:00
|
|
|
@echo " html to make standalone HTML files"
|
|
|
|
@echo " dirhtml to make HTML files called index.html in directories"
|
2010-05-30 02:06:34 -05:00
|
|
|
@echo " singlehtml to make one big HTML file"
|
2010-07-17 12:52:54 -05:00
|
|
|
@echo " text to make text files"
|
|
|
|
@echo " man to make manual pages"
|
|
|
|
@echo " pickle to make pickle files"
|
|
|
|
@echo " json to make json files"
|
|
|
|
@echo " htmlhelp to make HTML files and a HTML help project"
|
|
|
|
@echo " qthelp to make Qt help files and project"
|
|
|
|
@echo " devhelp to make Devhelp files and project"
|
|
|
|
@echo " epub to make an epub file"
|
|
|
|
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
|
|
|
@echo " latexpdf to make LaTeX files and run pdflatex"
|
2010-08-17 04:08:23 -05:00
|
|
|
@echo " gettext to make PO message catalogs"
|
2010-07-17 12:52:54 -05:00
|
|
|
@echo " changes to make an overview over all changed/added/deprecated items"
|
|
|
|
@echo " linkcheck to check all external links for integrity"
|
2008-03-18 14:52:26 -05:00
|
|
|
|
|
|
|
clean:
|
2008-03-21 10:20:50 -05:00
|
|
|
-rm -rf _build/*
|
2008-03-18 14:52:26 -05:00
|
|
|
|
|
|
|
html:
|
2008-03-21 10:20:50 -05:00
|
|
|
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
|
2008-03-18 14:52:26 -05:00
|
|
|
@echo
|
2008-03-21 10:20:50 -05:00
|
|
|
@echo "Build finished. The HTML pages are in _build/html."
|
2008-03-18 14:52:26 -05:00
|
|
|
|
2009-02-18 17:07:47 -06:00
|
|
|
dirhtml:
|
|
|
|
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) _build/dirhtml
|
|
|
|
@echo
|
|
|
|
@echo "Build finished. The HTML pages are in _build/dirhtml."
|
|
|
|
|
2010-01-17 09:48:02 -06:00
|
|
|
singlehtml:
|
|
|
|
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) _build/singlehtml
|
|
|
|
@echo
|
|
|
|
@echo "Build finished. The HTML page is in _build/singlehtml."
|
|
|
|
|
2008-12-25 14:44:38 -06:00
|
|
|
text:
|
|
|
|
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) _build/text
|
|
|
|
@echo
|
|
|
|
@echo "Build finished."
|
|
|
|
|
2010-02-21 04:50:08 -06:00
|
|
|
man:
|
|
|
|
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) _build/man
|
|
|
|
@echo
|
|
|
|
@echo "Build finished."
|
|
|
|
|
2008-03-25 13:31:06 -05:00
|
|
|
pickle:
|
|
|
|
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle
|
2010-05-26 12:08:15 -05:00
|
|
|
@echo
|
|
|
|
@echo "Build finished."
|
2008-03-18 14:52:26 -05:00
|
|
|
|
2010-05-22 04:40:52 -05:00
|
|
|
json:
|
|
|
|
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) _build/json
|
2010-05-26 12:08:15 -05:00
|
|
|
@echo
|
|
|
|
@echo "Build finished."
|
2010-05-22 04:40:52 -05:00
|
|
|
|
2008-03-18 14:52:26 -05:00
|
|
|
htmlhelp:
|
2008-03-21 10:20:50 -05:00
|
|
|
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp
|
2008-03-18 14:52:26 -05:00
|
|
|
@echo
|
|
|
|
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
2008-03-21 10:20:50 -05:00
|
|
|
".hhp project file in _build/htmlhelp."
|
2008-03-18 14:52:26 -05:00
|
|
|
|
2008-12-28 17:51:51 -06:00
|
|
|
qthelp:
|
|
|
|
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) _build/qthelp
|
|
|
|
@echo
|
|
|
|
@echo "Build finished; now you can run qcollectiongenerator with the" \
|
|
|
|
".qhcp project file in build/qthelp."
|
|
|
|
@echo "# qcollectiongenerator _build/qthelp/Sphinx.qhcp"
|
|
|
|
@echo "To view the help collection:"
|
|
|
|
@echo "# assistant -collectionFile _build/qthelp/Sphinx.qhc"
|
|
|
|
|
2010-05-30 02:02:22 -05:00
|
|
|
devhelp:
|
|
|
|
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) _build/devhelp
|
|
|
|
@echo
|
|
|
|
@echo "Build finished."
|
|
|
|
@echo "To view the help file:"
|
|
|
|
@echo "# mkdir -p $$HOME/.local/share/devhelp/sphinx"
|
|
|
|
@echo "# ln -s _build/devhelp $$HOME/.local/share/devhelp/sphinx"
|
|
|
|
@echo "# devhelp"
|
|
|
|
|
2009-12-28 10:09:09 -06:00
|
|
|
epub:
|
|
|
|
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) _build/epub
|
|
|
|
@echo
|
|
|
|
@echo "Build finished. The epub file is in _build/epub."
|
2010-01-17 08:33:28 -06:00
|
|
|
|
2008-03-18 14:52:26 -05:00
|
|
|
latex:
|
2008-03-21 10:20:50 -05:00
|
|
|
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
|
2008-03-18 14:52:26 -05:00
|
|
|
@echo
|
2008-03-21 10:20:50 -05:00
|
|
|
@echo "Build finished; the LaTeX files are in _build/latex."
|
2008-03-18 14:52:26 -05:00
|
|
|
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
|
|
|
|
"run these through (pdf)latex."
|
|
|
|
|
2010-05-30 02:02:22 -05:00
|
|
|
latexpdf:
|
|
|
|
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
|
|
|
|
@echo "Running LaTeX files through pdflatex..."
|
|
|
|
make -C _build/latex all-pdf
|
|
|
|
@echo "pdflatex finished; the PDF files are in _build/latex."
|
|
|
|
|
2010-05-30 10:02:54 -05:00
|
|
|
gettext:
|
|
|
|
$(SPHINXBUILD) -b gettext $(ALLSPHINXOPTS) _build/locale
|
|
|
|
@echo
|
|
|
|
@echo "Build finished. The message catalogs are in _build/locale."
|
|
|
|
|
2008-03-18 14:52:26 -05:00
|
|
|
changes:
|
2008-03-21 10:20:50 -05:00
|
|
|
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) _build/changes
|
2008-03-18 14:52:26 -05:00
|
|
|
@echo
|
2008-03-21 10:20:50 -05:00
|
|
|
@echo "The overview file is in _build/changes."
|
2008-03-18 14:52:26 -05:00
|
|
|
|
|
|
|
linkcheck:
|
2008-03-21 10:20:50 -05:00
|
|
|
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) _build/linkcheck
|
2008-03-18 14:52:26 -05:00
|
|
|
@echo
|
|
|
|
@echo "Link check complete; look for any errors in the above output " \
|
2008-03-21 10:20:50 -05:00
|
|
|
"or in _build/linkcheck/output.txt."
|
2008-03-21 09:06:04 -05:00
|
|
|
|
|
|
|
doctest:
|
2008-03-21 10:20:50 -05:00
|
|
|
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) _build/doctest
|