From: Lucas De Marchi Date: Fri, 7 Aug 2026 04:56:02 +0000 (-0500) Subject: meson: Add 'man' alias target X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=HEAD;p=thirdparty%2Fkmod.git meson: Add 'man' alias target Allow to build all man pages without depending on the rest of the build. Reviewed-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/455 Signed-off-by: Lucas De Marchi --- diff --git a/man/meson.build b/man/meson.build index 0409b280..01f9dccc 100644 --- a/man/meson.build +++ b/man/meson.build @@ -12,11 +12,13 @@ _man_pages = [ ['8', 'modprobe'], ['8', 'rmmod'], ] + +man_targets = [] foreach tuple : _man_pages section = tuple[0] man = tuple[1] - custom_target( + man_targets += custom_target( f'man_@section@_@man@', command : [ build_scdoc, @@ -44,7 +46,7 @@ foreach tuple : _man_aliases man = tuple[1] dest = tuple[2] - custom_target( + man_targets += custom_target( f'man_@section@_@man@', command : ['echo', f'.so @dest@'], output : f'@man@.@section@', @@ -53,3 +55,5 @@ foreach tuple : _man_aliases install_dir : get_option('mandir') / f'man@section@', ) endforeach + +alias_target('man', man_targets)