From 572ff68ab4fc8bc754d92ed2d80631a7133f174b Mon Sep 17 00:00:00 2001 From: Daniel Svensson Date: Mon, 12 Nov 2007 23:50:59 +0100 Subject: [PATCH] Only build pk-reference.html if DOCBOOK_DOCS_ENABLED is 1 --- docs/wscript_build | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/wscript_build b/docs/wscript_build index 34aee40dc..4e4629f13 100644 --- a/docs/wscript_build +++ b/docs/wscript_build @@ -18,11 +18,13 @@ install_files('DATADIR', doc_subdir, 'pk-structure.png') install_files('DATADIR', doc_subdir, 'docbook.css') # xmlto html-nochunks -m config.xsl pk-reference.xml -cmd = bld.create_obj('command-output') -cmd.hidden_outputs = 'pk-reference.html' -cmd.command = 'xmlto' -cmd.command_is_external = True -cmd.cwd = cmd.input_dir('.') # xmlto is stupid, doesn't work from outside the xml source dir :( -cmd.argv = ['html-nochunks', '-m', cmd.input_file('config.xsl'), - '--searchpath', cmd.input_dir('.'), '-o', cmd.output_dir('.'), - cmd.input_file('pk-reference.xml')] +env = bld.env() +if env['DOCBOOK_DOCS_ENABLED']: + cmd = bld.create_obj('command-output') + cmd.hidden_outputs = 'pk-reference.html' + cmd.command = 'xmlto' + cmd.command_is_external = True + cmd.cwd = cmd.input_dir('.') # xmlto is stupid, doesn't work from outside the xml source dir :( + cmd.argv = ['html-nochunks', '-m', cmd.input_file('config.xsl'), + '--searchpath', cmd.input_dir('.'), '-o', cmd.output_dir('.'), + cmd.input_file('pk-reference.xml')]