]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Latex output file must end in .tex
authorBen Darnell <ben@bendarnell.com>
Sat, 11 Aug 2012 19:09:57 +0000 (12:09 -0700)
committerBen Darnell <ben@bendarnell.com>
Sat, 11 Aug 2012 19:09:57 +0000 (12:09 -0700)
website/Makefile
website/sphinx/conf.py

index 6032d149025f55dcd883f9adc0faf5c77d9c2091..202e2d132c360f271f7c09d7eb2abebb92a54029 100644 (file)
@@ -9,5 +9,16 @@ coverage:
        sphinx-build -b coverage ${SPHINXOPTS} sphinx/build/coverage
        cat sphinx/build/coverage/python.txt
 
+.PHONY: latex
+latex:
+       sphinx-build -b latex $(SPHINXOPTS) sphinx/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 sphinx/build/latex/tornado.pdf
+.PHONY: pdf
+pdf: latex
+       cd sphinx/build/latex && pdflatex -interaction=nonstopmode tornado.tex
+
 clean:
-       rm -rf sphinx/build
\ No newline at end of file
+       rm -rf sphinx/build
index d429c724153f34ddcc983a35139dc2f9181736e5..86992f44e59e6fc26ff273f120ddc8c1057e1af0 100644 (file)
@@ -76,5 +76,5 @@ html_theme_options = dict(
     )
 
 latex_documents = [
-    ('index', 'tornado', 'Tornado Documentation', 'Facebook', 'manual', False),
+    ('index', 'tornado.tex', 'Tornado Documentation', 'Facebook', 'manual', False),
     ]