From: Yu Watanabe Date: Tue, 31 Oct 2017 08:12:13 +0000 (+0900) Subject: meson: do not include man/meson.build if xsltproc not found X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=91e69bea9385aa573c1d03989548c42fb3f06a7f;p=elogind.git meson: do not include man/meson.build if xsltproc not found Fixes #7232. --- diff --git a/man/meson.build b/man/meson.build index d5e4e9089..0312f337c 100644 --- a/man/meson.build +++ b/man/meson.build @@ -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]