chiark / gitweb /
meson: do not include man/meson.build if xsltproc not found
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 31 Oct 2017 08:12:13 +0000 (17:12 +0900)
committerSven Eden <yamakuzure@gmx.net>
Tue, 31 Oct 2017 08:12:13 +0000 (17:12 +0900)
Fixes #7232.

man/meson.build

index d5e4e90890f333ad65679cf9a7d023a60e9e1d7e..0312f337c41e353b1f46813a2d8a2ad5544f6d85 100644 (file)
@@ -34,7 +34,7 @@ xslt_cmd = [xsltproc, '-o', '@OUTPUT0@'] + xsltproc_flags
 man_pages = []
 html_pages = []
 source_xml_files = []
-foreach tuple : manpages
+foreach tuple : want_man or want_html ? manpages : []
         stem = tuple[0]
         section = tuple[1]
         aliases = tuple[2]
@@ -121,8 +121,8 @@ elogind_index_xml = custom_target(
         output : 'elogind.index.xml',
         command : [make_man_index_py, '@OUTPUT@'] + nonindex_xml_files)
 
-foreach tuple : [['elogind.directives', '7', elogind_directives_xml],
-                 ['elogind.index',      '7', elogind_index_xml]]
+foreach tuple : want_man or want_html ? [['elogind.directives', '7', elogind_directives_xml],
+                                         ['elogind.index',      '7', elogind_index_xml]] : []
         stem = tuple[0]
         section = tuple[1]
         xml = tuple[2]