]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 31 Oct 2017 08:12:21 +0000 (17:12 +0900)
Fixes #7232.

man/meson.build

index 7d28e6ba1ad577adff4799a52a121f9f3a1dc2a9..e376bb8365b8f77d03b44b341546cdb19784128d 100644 (file)
@@ -32,7 +32,7 @@ custom_entities_ent = configure_file(
 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]
@@ -115,8 +115,8 @@ systemd_index_xml = custom_target(
         output : 'systemd.index.xml',
         command : [make_man_index_py, '@OUTPUT@'] + nonindex_xml_files)
 
-foreach tuple : [['systemd.directives', '7', systemd_directives_xml],
-                 ['systemd.index',      '7', systemd_index_xml]]
+foreach tuple : want_man or want_html ? [['systemd.directives', '7', systemd_directives_xml],
+                                         ['systemd.index',      '7', systemd_index_xml]] : []
         stem = tuple[0]
         section = tuple[1]
         xml = tuple[2]