sphinx/doc/Makefile

99 lines
3.0 KiB
Makefile
Raw Normal View History

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)) \
2008-03-18 14:52:26 -05:00
$(SPHINXOPTS) .
.PHONY: help clean html dirhtml pickle htmlhelp qthelp latex changes linkcheck doctest
2008-03-18 14:52:26 -05:00
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " dirhtml to make HTML files called index.html in directories"
2008-12-20 17:24:36 -06:00
@echo " pickle to make pickle files"
2008-03-18 14:52:26 -05:00
@echo " htmlhelp to make HTML files and a HTML help project"
2009-12-28 10:09:09 -06:00
@echo " epub to make an epub file"
2008-03-18 14:52:26 -05:00
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
2010-02-21 04:50:08 -06:00
@echo " man to make manual pages"
2008-03-18 14:52:26 -05:00
@echo " changes to make an overview over all changed/added/deprecated items"
@echo " linkcheck to check all external links for integrity"
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
dirhtml:
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) _build/dirhtml
@echo
@echo "Build finished. The HTML pages are in _build/dirhtml."
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
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
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"
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."
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."
doctest:
2008-03-21 10:20:50 -05:00
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) _build/doctest