summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorArnaud Rebillout <arnaud.rebillout@collabora.com>2018-11-05 12:03:03 +0700
committerArun Raghavan <arun@arunraghavan.net>2019-06-08 11:57:00 +0200
commit6826c60da5d1eee203ffe5d6b239838972678828 (patch)
treee5867bd1ee412cc2b10ac1db58d201d5523f8c96 /man
parent8d241d62c52c6621c9996c2ac74a8dd9741a7489 (diff)
downloadpulseaudio-6826c60da5d1eee203ffe5d6b239838972678828.tar.gz
meson: Make man page build and install conditional
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
Diffstat (limited to 'man')
-rw-r--r--man/meson.build11
1 files changed, 4 insertions, 7 deletions
diff --git a/man/meson.build b/man/meson.build
index 23dd9fe5b..ef483c7ad 100644
--- a/man/meson.build
+++ b/man/meson.build
@@ -20,17 +20,14 @@ manpages = [
# FIXME: Add esdcompat if HAVE_ESOUND
#manpages += ['esdcompat', '1'],
-# FIXME: This should be conditional
-want_man = true
-
man_data = configuration_data()
man_data.set('PACKAGE_URL', 'http://pulseaudio.org/')
man_data.set('PACKAGE_BUGREPORT', 'pulseaudio-discuss (at) lists (dot) freedesktop (dot) org')
man_data.set('PA_DEFAULT_CONFIG_DIR', cdata.get_unquoted('PA_DEFAULT_CONFIG_DIR'))
-perl = find_program('perl', required: want_man == true)
+perl = find_program('perl', required: true)
xmltoman_cmd = [perl, join_paths(meson.current_source_dir(), 'xmltoman')]
-xmllint = find_program('xmllint', required: want_man == true)
+xmllint = find_program('xmllint', required: false)
foreach tuple : manpages
stem = tuple[0]
@@ -55,7 +52,7 @@ foreach tuple : manpages
output : man,
capture : true,
command : xmltoman_cmd + ['@INPUT@'],
- install : want_man,
+ install : true,
install_dir : mandirn,
)
@@ -64,7 +61,7 @@ foreach tuple : manpages
alias,
output : alias,
command : ['ln', '-fs', man, '@OUTPUT@'],
- install : want_man,
+ install : true,
install_dir : mandirn,
)
endforeach