summaryrefslogtreecommitdiffstats
path: root/man/meson.build
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-03-05 14:41:17 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2024-03-06 10:55:01 +0100
commitec3cf73f303cf99ba73c91b734401b3ad2c218e9 (patch)
treee41639ed2c9f5b4eebb34bf7359ab9c8498dc95e /man/meson.build
parentukify: convert certificate to public key before embedding in .pcrpkey (diff)
downloadsystemd-ec3cf73f303cf99ba73c91b734401b3ad2c218e9.tar.xz
systemd-ec3cf73f303cf99ba73c91b734401b3ad2c218e9.zip
meson/man: allow man pages to use multiple conditions
This way the man pages are installed only when the corresponding binary is installed. The conditions in man pages and man/rules/meson.build are adjusted to match the conditions for units in units/meson.build.
Diffstat (limited to 'man/meson.build')
-rw-r--r--man/meson.build10
1 files changed, 9 insertions, 1 deletions
diff --git a/man/meson.build b/man/meson.build
index 403098a814..488ff70220 100644
--- a/man/meson.build
+++ b/man/meson.build
@@ -59,7 +59,15 @@ foreach tuple : manpages
mandirn = get_option('mandir') / ('man' + section)
- if condition == '' or conf.get(condition) == 1
+ have = true
+ foreach word : condition.split()
+ if conf.get(word) != 1
+ have = false
+ break
+ endif
+ endforeach
+
+ if have
file = files(tuple[0] + '.xml')
source_xml_files += file
if tuple[0].startswith('org.freedesktop.')