diff options
author | Peter Eisentraut | 2023-11-09 14:05:58 +0000 |
---|---|---|
committer | Peter Eisentraut | 2023-11-09 14:10:43 +0000 |
commit | 7b8399819b9b1a409b11ebfb4027aed56747f923 (patch) | |
tree | 37ea2dc5a9a462ecfa919d9e1a0d6d7abe237600 | |
parent | b44a1708abe306831073cf88bb0ba6a11e68daee (diff) |
meson: Fix doc installation path computation
This applies the logic from 8f6858064b (append "postgresql" to some
installation paths if it does not already contain "pgsql" or
"postgres") also to the doc installation directory.
Reviewed-by: Tristan Partin <[email protected]>
Reviewed-by: Andres Freund <[email protected]>
Discussion: https://www.postgresql.org/message-id/[email protected]
-rw-r--r-- | meson.build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 88a9d9051fe..6c0faa9490f 100644 --- a/meson.build +++ b/meson.build @@ -511,7 +511,10 @@ endif dir_man = get_option('mandir') # FIXME: These used to be separately configurable - worth adding? -dir_doc = get_option('datadir') / 'doc' / 'postgresql' +dir_doc = get_option('datadir') / 'doc' +if not (dir_prefix_contains_pg or dir_doc.contains('pgsql') or dir_doc.contains('postgres')) + dir_doc = dir_doc / pkg +endif dir_doc_html = dir_doc / 'html' dir_locale = get_option('localedir') |