add automatic building of translation documentation

Build the pdf from the rst file on make. Delete this in the clean section.

Not adding PDF to the repo as it can be recreated, but the same is true for the phpdoc stuff ...
This commit is contained in:
Felix Möller 2011-02-20 22:39:07 +01:00 committed by Andrew McMillan
parent eccf2051f2
commit 5fcbfdddd8

View File

@ -7,8 +7,9 @@ snapshot : version = $(shell sed -n 's:\([0-9\.]*\)[-a-f0-9-]*:\1:p' VERSION)-gi
all: htdocs/always.php built-docs built-po all: htdocs/always.php built-docs built-po
built-docs: docs/api/phpdoc.ini htdocs/*.php inc/*.php built-docs: docs/api/phpdoc.ini htdocs/*.php inc/*.php docs/translation.rst
phpdoc -c docs/api/phpdoc.ini || echo "NOTICE: Failed to build optional API docs" phpdoc -c docs/api/phpdoc.ini || echo "NOTICE: Failed to build optional API docs"
rst2pdf docs/translation.rst || echo "NOTICE: Failed to build ReST docs"
touch built-docs touch built-docs
built-po: htdocs/always.php scripts/po/rebuild-translations.sh po/*.po built-po: htdocs/always.php scripts/po/rebuild-translations.sh po/*.po
@ -37,6 +38,7 @@ snapshot: release
clean: clean:
rm -f built-docs built-po rm -f built-docs built-po
-find . -name "*~" -delete -find . -name "*~" -delete
rm docs/translation.pdf
clean-all: clean clean-all: clean
-find docs/api/* ! -name "phpdoc.ini" ! -name ".gitignore" -delete -find docs/api/* ! -name "phpdoc.ini" ! -name ".gitignore" -delete