summaryrefslogtreecommitdiffstats
path: root/common/waf.py
diff options
context:
space:
mode:
authorAmar Takhar <amar@rtems.org>2016-01-19 21:03:57 -0500
committerAmar Takhar <verm@darkbeer.org>2016-05-02 20:51:25 -0400
commit7c1f2154d638d9c382334490382a747ad873522e (patch)
tree0596c85c3e080f7af8b20f642c11e77a4b89c342 /common/waf.py
parentAdd support for singlehtml (inlined) HTML file, plus some other fixes. (diff)
downloadrtems-docs-7c1f2154d638d9c382334490382a747ad873522e.tar.bz2
Only require makeindex and pdflatex when trying to build PDF.
Diffstat (limited to 'common/waf.py')
-rw-r--r--common/waf.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/waf.py b/common/waf.py
index 8369900..e407fe9 100644
--- a/common/waf.py
+++ b/common/waf.py
@@ -48,9 +48,6 @@ def check_sphinx_version(ctx, minver):
def cmd_configure(ctx):
ctx.load('tex')
- if not ctx.env.PDFLATEX or not ctx.env.MAKEINDEX:
- ctx.fatal('The programs pdflatex and makeindex are required')
-
ctx.find_program("sphinx-build", var="BIN_SPHINX_BUILD", mandatory=True)
ctx.find_program("aspell", var="BIN_ASPELL", mandatory=False)
ctx.find_program("inliner", var="BIN_INLINER", mandatory=False)
@@ -62,6 +59,9 @@ def cmd_configure(ctx):
def doc_pdf(ctx, source_dir, conf_dir):
+ if not ctx.env.PDFLATEX or not ctx.env.MAKEINDEX:
+ ctx.fatal('The programs pdflatex and makeindex are required')
+
ctx(
rule = "${BIN_SPHINX_BUILD} -b latex -c %s -j %d -d build/doctrees %s build/latex" % (conf_dir, ctx.options.jobs, source_dir),
cwd = ctx.path.abspath(),