chiark / gitweb /
tree-wide: beautify remaining copyright statements
[elogind.git] / man / meson.build
index c64a50112db09eef31a34ebf3d30da38e3060a01..671b7b36656aad62a5fa8b37aa8622d619801b07 100644 (file)
@@ -1,3 +1,7 @@
+# SPDX-License-Identifier: LGPL-2.1+
+#
+# Copyright © 2017 Zbigniew Jędrzejewski-Szmek
+
 # This is lame, I know, but meson has no other include mechanism
 subdir('rules')
 
@@ -74,7 +78,12 @@ foreach tuple : xsltproc.found() ? 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]