meson: docs: Install all manpages, not just ones in man1
authorAndres Freund <andres@anarazel.de>
Fri, 3 Nov 2023 18:46:52 +0000 (11:46 -0700)
committerAndres Freund <andres@anarazel.de>
Fri, 3 Nov 2023 21:48:52 +0000 (14:48 -0700)
In f13eb16485f I made a mistake leading to only man1 being installed. I will
report a bug suggesting that meson warn about mistakes of this sort.

Reported-by: Christoph Berg <myon@debian.org>
Discussion: https://postgr.es/m/ZUU5pRQO6ZUeBsi6@msg.df7cb.de
Backpatch: 16-, where the meson build was introduced

doc/src/sgml/meson.build

index 16c1aa980c90cceee801ab1c9a78fc9963a02d01..90e2c062fa8f5ba335f04d85646c1a941ef93d04 100644 (file)
@@ -225,9 +225,10 @@ if docs_dep.found()
 
   install_doc_man = custom_target('install-man',
     output: 'install-man',
+    input: man,
     command: [
       python, install_files, '--prefix', dir_prefix,
-      '--install-dirs', dir_man, man],
+      '--install-dirs', dir_man, '@INPUT@'],
     build_always_stale: true, build_by_default: false,
   )
   alias_target('install-doc-man', install_doc_man)