chiark / gitweb /
meson: restore building of man pages on demand even if -Dman=false
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 24 Nov 2017 13:00:29 +0000 (14:00 +0100)
committerSven Eden <yamakuzure@gmx.net>
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 0312f337c41e353b1f46813a2d8a2ad5544f6d85..c64a50112db09eef31a34ebf3d30da38e3060a01 100644 (file)
@@ -34,7 +34,7 @@ xslt_cmd = [xsltproc, '-o', '@OUTPUT0@'] + xsltproc_flags
 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]