summaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2015-11-17 22:04:50 (GMT)
committerEvan Martin <martine@danga.com>2015-11-17 22:05:53 (GMT)
commita6859ac8af7377b1a1e136a6b296f8e8ca950507 (patch)
treec80140188229269ead4b6f033ad6a42090a00c57 /configure.py
parent274db07276106944f63a3387bc3826e2211da154 (diff)
downloadNinja-a6859ac8af7377b1a1e136a6b296f8e8ca950507.zip
Ninja-a6859ac8af7377b1a1e136a6b296f8e8ca950507.tar.gz
Ninja-a6859ac8af7377b1a1e136a6b296f8e8ca950507.tar.bz2
improve docs generation, including PDF output
- Fix the manual build rules (missing the .xsl as an input). - Add a README describing how the docs build works. - Add rules that generate PDF, just 'cause we can.
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/configure.py b/configure.py
index 0710ea2..2104aff 100755
--- a/configure.py
+++ b/configure.py
@@ -592,13 +592,19 @@ n.rule('asciidoc',
n.rule('xsltproc',
command='xsltproc --nonet doc/docbook.xsl $in > $out',
description='XSLTPROC $out')
-xml = n.build(built('manual.xml'), 'asciidoc', doc('manual.asciidoc'))
-manual = n.build(doc('manual.html'), 'xsltproc', xml,
- implicit=doc('style.css'))
+docbookxml = n.build(built('manual.xml'), 'asciidoc', doc('manual.asciidoc'))
+manual = n.build(doc('manual.html'), 'xsltproc', docbookxml,
+ implicit=[doc('style.css'), doc('docbook.xsl')])
n.build('manual', 'phony',
order_only=manual)
n.newline()
+n.rule('dblatex',
+ command='dblatex -q -o $out -p doc/dblatex.xsl $in',
+ description='DBLATEX $out')
+n.build(doc('manual.pdf'), 'dblatex', docbookxml,
+ implicit=[doc('dblatex.xsl')])
+
n.comment('Generate Doxygen.')
n.rule('doxygen',
command='doxygen $in',