summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Rebillout <arnaud.rebillout@collabora.com>2018-11-05 12:05:35 +0700
committerArun Raghavan <arun@arunraghavan.net>2019-06-08 11:57:00 +0200
commitb15428d4bb88b76d567955c0298da7d5da811286 (patch)
tree0b70a8e70195c6c15974b443b87b92d86efe1329
parent6826c60da5d1eee203ffe5d6b239838972678828 (diff)
meson: Handle man pages symlinks with a meson install script
This seems to be the common way to handle that, until meson decides to address #1602: https://github.com/mesonbuild/meson/issues/1602 Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
-rw-r--r--man/meson.build11
1 files changed, 2 insertions, 9 deletions
diff --git a/man/meson.build b/man/meson.build
index ef483c7ad..e1697e6f6 100644
--- a/man/meson.build
+++ b/man/meson.build
@@ -1,5 +1,3 @@
-# TODO How are symlinks installed by meson?
-# We might need meson.add_install_script()
# man page name, section, [aliases]
manpages = [
@@ -57,13 +55,8 @@ foreach tuple : manpages
)
foreach alias : aliases
- link = custom_target(
- alias,
- output : alias,
- command : ['ln', '-fs', man, '@OUTPUT@'],
- install : true,
- install_dir : mandirn,
- )
+ dst = join_paths(mandirn, alias)
+ meson.add_install_script('ln', '-fs', man, dst)
endforeach
if xmllint.found()