]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: restore building of man pages on demand even if -Dman=false 7458/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 24 Nov 2017 13:00:29 +0000 (14:00 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 24 Nov 2017 13:00:29 +0000 (14:00 +0100)
I want to configure -Dman=false for speed, but be able to build a specific
man page sometimes to check my edits. Commit 5b316b9ea6c broke this by mistake.
Let's adjust the condition to better match the logic of disabling tests only
if xsltproc is really not found.

man/meson.build

index 8757dccb84e6721c346472afe659d8262fe13482..3a684101d281e2ee329ad542e57e5938e1783355 100644 (file)
@@ -49,7 +49,7 @@ custom_entities_ent = configure_file(
 man_pages = []
 html_pages = []
 source_xml_files = []
-foreach tuple : want_man or want_html ? manpages : []
+foreach tuple : xsltproc.found() ? manpages : []
         stem = tuple[0]
         section = tuple[1]
         aliases = tuple[2]