meson: docs: Add {html,man} targets, rename install-doc-*
authorAndres Freund <[email protected]>
Tue, 21 Nov 2023 01:46:40 +0000 (17:46 -0800)
committerAndres Freund <[email protected]>
Tue, 21 Nov 2023 01:46:40 +0000 (17:46 -0800)
We have toplevel html, man targets in the autoconf build as well. It'd be odd
to have an 'html' target but have the install target be 'install-doc-html',
thus rename the install targets to match.

Reviewed-by: Christoph Berg <[email protected]>
Reviewed-by: Peter Eisentraut <[email protected]>
Discussion: https://postgr.es/m/20231103163848[email protected]

doc/src/sgml/meson.build

index 90e2c062fa8f5ba335f04d85646c1a941ef93d04..e5a38e060c723258a3650e53bb3b30626bce3807 100644 (file)
@@ -142,7 +142,8 @@ if docs_dep.found()
       '--install-dir-contents', dir_doc_html, html],
     build_always_stale: true, build_by_default: false,
   )
-  alias_target('install-doc-html', install_doc_html)
+  alias_target('html', html)
+  alias_target('install-html', install_doc_html)
 
   # build and install multi-page html docs as part of docs target
   docs += html
@@ -231,7 +232,8 @@ if docs_dep.found()
       '--install-dirs', dir_man, '@INPUT@'],
     build_always_stale: true, build_by_default: false,
   )
-  alias_target('install-doc-man', install_doc_man)
+  alias_target('man', man)
+  alias_target('install-man', install_doc_man)
 
   # even though we don't want to build man pages as part of 'docs', we do want
   # to install them as part of install-docs