]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doc/meson: fix installation with missing info page
authorTomas Krizek <tomas.krizek@nic.cz>
Wed, 14 Oct 2020 10:22:53 +0000 (12:22 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Thu, 15 Oct 2020 11:18:51 +0000 (13:18 +0200)
doc/meson.build
scripts/make-doc.sh

index 7dfe46525ee2ec02958e5b6f0985fbcba046964d..a911f92389cb78815113842b3d6da304be677189 100644 (file)
@@ -61,8 +61,9 @@ if get_option('doc') == 'enabled'
     # FIXME: Sphinx < 2 doesn't create a separate directory for figures, while
     #        a newer one does. To simplify packaging, figures for info pages are
     #        compleltely omitted for now.
-    install_data(
-      join_paths(meson.current_source_dir(), 'texinfo', 'knot-resolver.info'),
+    install_subdir(
+      join_paths(meson.current_source_dir(), 'texinfo', '.install'),
+      strip_directory: true,
       install_dir: info_dir,
     )
   endif
index 0abd9254a12191146267c9d301eb1790f3848f2d..5cc18302ef3b501cfd4fe2d7dbbc86a4cc0cc771 100755 (executable)
@@ -20,4 +20,6 @@ if command -v makeinfo &>/dev/null; then
     rm -rf doc/texinfo
     ${SPHINX} ${@} -b texinfo -d doc/.doctrees doc doc/texinfo && \
         make -C doc/texinfo info
+    mkdir doc/texinfo/.install
+    mv doc/texinfo/knot-resolver.info doc/texinfo/.install/
 fi