]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix the gettext to be the same way sphinx-quickstart gives you
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 8 Jan 2012 18:27:50 +0000 (13:27 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 8 Jan 2012 18:27:50 +0000 (13:27 -0500)
doc/build/Makefile

index 375b61ff9fcb9a107553077d01dc67b2a3090044..3c336da196613162282de26cd225cd97363f30d8 100644 (file)
@@ -11,13 +11,15 @@ BUILDDIR      = output
 PAPEROPT_a4     = -D latex_paper_size=a4
 PAPEROPT_letter = -D latex_paper_size=letter
 ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+# the i18n builder cannot share the environment and doctrees with the others
+I18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
 
-.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest dist-html site-mako
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest dist-html site-mako gettext
 
 help:
        @echo "Please use \`make <target>' where <target> is one of"
        @echo "  html       to make standalone HTML files"
-       @echo "  gettext    generate .pot files"
+       @echo "  gettext    to make PO message catalogs"
        @echo "  dist-html  same as html, but places files in /doc"
        @echo "  site-mako  to make sqlalchemy.org Mako files"
        @echo "  dirhtml    to make HTML files named index.html in directories"
@@ -45,7 +47,9 @@ html:
        @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
 
 gettext:
-       $(SPHINXBUILD) -b gettext $(SPHINXOPTS) . $(BUILDDIR)/gettext
+       $(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
+       @echo
+       @echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."
 
 dist-html:
        $(SPHINXBUILD) -b html -A mako_layout=html $(ALLSPHINXOPTS) ..