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 22:22:14 +0000 (15:22 -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 c6d77b5a1504c9f8b8d25aaac4db403064938dc5..4fcce2f6546311a1c4a890b7812abcdf4770c446 100644 (file)
@@ -213,9 +213,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)