From b15428d4bb88b76d567955c0298da7d5da811286 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Mon, 5 Nov 2018 12:05:35 +0700 Subject: [PATCH] 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 --- man/meson.build | 11 ++--------- 1 file 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()