summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-05-10 14:20:36 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-05-10 14:20:36 +0100
commitb2348e74693c583e89d7243ad11fa9be680fc503 (patch)
treee480d321044bb037652c676b21ca5c3b3d4eb732
parente530801f078418f0eab5b4e048c9dc40a1491e24 (diff)
downloadappstream-glib-b2348e74693c583e89d7243ad11fa9be680fc503.tar.gz
build: Conditionally generate man pages
Depend on the value of the `enable-man` option, as well as the presence of xsltproc. This is necessary, as not all builders allow connecting to the network to download the XSLT style sheet for turning docbook into man pages, for instance.
-rw-r--r--data/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/meson.build b/data/meson.build
index 5107f8e..81efa94 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -12,7 +12,7 @@ install_data('appdata.its', install_dir : 'share/gettext/its')
install_data('appdata.loc', install_dir : 'share/gettext/its')
xsltproc = find_program('xsltproc', required : false)
-if xsltproc.found()
+if get_option('enable-man') and xsltproc.found()
custom_target('appstream-util-man',
input: 'appstream-util.xml',
output: 'appstream-util.1',