From 65ac890492c96b88d10d8c92342a1b00ff603dba Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 6 Aug 2026 23:56:02 -0500 Subject: [PATCH] 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 --- man/meson.build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) -- 2.47.3