############################################################
+have_lxml = run_command(xml_helper_py).returncode() == 0
+if not have_lxml
+ message('python-lxml not available, not making man page indices')
+endif
+
systemd_directives_xml = custom_target(
'systemd.directives.xml',
input : source_xml_files,
input : xml,
output : man,
command : [xsltproc, '-o', '@OUTPUT0@'] + xsltproc_flags + [custom_man_xsl, '@INPUT@'],
- install : want_man,
+ install : want_man and have_lxml,
install_dir : mandirn)
man_pages += [p1]
input : xml,
output : html,
command : [xsltproc, '-o', '@OUTPUT0@'] + xsltproc_flags + [custom_html_xsl, '@INPUT@'],
- install : want_html,
+ install : want_html and have_lxml,
install_dir : join_paths(docdir, 'html'))
html_pages += [p2]
endforeach
make_directive_index_py = find_program('tools/make-directive-index.py')
make_man_index_py = find_program('tools/make-man-index.py')
+xml_helper_py = find_program('tools/xml_helper.py')
subdir('units')
subdir('sysctl.d')