From 2ba04abca4d864279401882980eca2c505f21407 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 16 Jun 2009 21:31:57 +0200 Subject: [PATCH] Add ``latexpdf`` target in quickstart Makefile. --- CHANGES | 2 ++ sphinx/quickstart.py | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGES b/CHANGES index 049d981bb..f1f39eac4 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,8 @@ Release 1.0 (in development) ============================ +* Add ``latexpdf`` target in quickstart Makefile. + * #200: Added ``Sphinx.add_stylesheet()``. * Added ``titlesonly`` option to ``toctree`` directive. diff --git a/sphinx/quickstart.py b/sphinx/quickstart.py index bf91c5a08..2f1f8720f 100644 --- a/sphinx/quickstart.py +++ b/sphinx/quickstart.py @@ -281,6 +281,7 @@ help: \t@echo " htmlhelp to make HTML files and a HTML help project" \t@echo " qthelp to make HTML files and a qthelp project" \t@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" +\t@echo " latexpdf to make LaTeX files and run them through pdflatex" \t@echo " changes to make an overview of all changed/added/deprecated items" \t@echo " linkcheck to check all external links for integrity" \t@echo " doctest to run all doctests embedded in the documentation \ @@ -331,6 +332,12 @@ latex: \t@echo "Run \\`make all-pdf' or \\`make all-ps' in that directory to" \\ \t "run these through (pdf)latex." +latexpdf: latex +\t$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) %(rbuilddir)s/latex +\t@echo "Running LaTeX files through pdflatex..." +\tmake -C %(rbuilddir)s/latex all-pdf +\t@echo "pdflatex finished; the PDF files are in %(rbuilddir)s/latex." + changes: \t$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) %(rbuilddir)s/changes \t@echo