chiark / gitweb /
Drop my copyright headers
[elogind.git] / man / meson.build
index 0312f337c41e353b1f46813a2d8a2ad5544f6d85..8357f1682df4598a3c53f138193cb61cea99502d 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-License-Identifier: LGPL-2.1+
+
 # This is lame, I know, but meson has no other include mechanism
 subdir('rules')
 
@@ -34,7 +36,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]
@@ -74,7 +76,12 @@ foreach tuple : want_man or want_html ? manpages : []
                                 output : htmlalias,
                                 command : ['ln', '-fs', html, '@OUTPUT@'])
                         if want_html
-                                dst = join_paths(docdir, 'html', htmlalias)
+#if 0 /// This must be configurable in elogind
+#                                 dst = join_paths(docdir, 'html', htmlalias)
+#else
+                                  dst = get_option('htmldir')
+                                  dst = dst != '' ? dst: join_paths(docdir, 'html', htmlalias)
+#endif // 0
                                 cmd = 'ln -fs @0@ $DESTDIR@1@'.format(html, dst)
                                 meson.add_install_script('sh', '-c', cmd)
                                 p2 += [link]