2014-07-13 02:57:16 +00:00
|
|
|
.PHONY: all
|
|
|
|
all: sphinx
|
|
|
|
|
2015-02-09 05:19:47 +00:00
|
|
|
# No -W for doctests because that disallows tests with empty output.
|
|
|
|
SPHINX_DOCTEST_OPTS=-n -d build/doctress .
|
2013-03-16 14:34:00 +00:00
|
|
|
SPHINXOPTS=-n -W -d build/doctrees .
|
2013-03-10 20:24:38 +00:00
|
|
|
|
|
|
|
.PHONY: sphinx
|
|
|
|
sphinx:
|
|
|
|
sphinx-build -b html $(SPHINXOPTS) build/html
|
|
|
|
|
|
|
|
.PHONY: coverage
|
|
|
|
coverage:
|
|
|
|
sphinx-build -b coverage ${SPHINXOPTS} build/coverage
|
|
|
|
cat build/coverage/python.txt
|
|
|
|
|
|
|
|
.PHONY: latex
|
|
|
|
latex:
|
|
|
|
sphinx-build -b latex $(SPHINXOPTS) build/latex
|
|
|
|
|
|
|
|
# Building a pdf requires a latex installation. For macports, the needed
|
|
|
|
# packages are texlive-latex-extra and texlive-fonts-recommended.
|
|
|
|
# The output is in build/latex/tornado.pdf
|
|
|
|
.PHONY: pdf
|
|
|
|
pdf: latex
|
|
|
|
cd build/latex && pdflatex -interaction=nonstopmode tornado.tex
|
|
|
|
|
2015-02-08 21:09:00 +00:00
|
|
|
.PHONY: doctest
|
|
|
|
doctest:
|
2015-02-09 05:19:47 +00:00
|
|
|
sphinx-build -b doctest $(SPHINX_DOCTEST_OPTS) build/doctest
|
2015-02-08 21:09:00 +00:00
|
|
|
|
2013-03-10 20:24:38 +00:00
|
|
|
clean:
|
|
|
|
rm -rf build
|