]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
meson: Add 'man' alias target master
authorLucas De Marchi <demarchi@kernel.org>
Fri, 7 Aug 2026 04:56:02 +0000 (23:56 -0500)
committerLucas De Marchi <demarchi@kernel.org>
Mon, 10 Aug 2026 15:44:08 +0000 (10:44 -0500)
Allow to build all man pages without depending on the rest of the build.

Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/455
Signed-off-by: Lucas De Marchi <demarchi@kernel.org>
man/meson.build

index 0409b280d1b4ff793bd3a01a01d26daf6b581289..01f9dccc090d4106773a088c32dcdbf42e6096e5 100644 (file)
@@ -12,11 +12,13 @@ _man_pages = [
   ['8', 'modprobe'],
   ['8', 'rmmod'],
 ]
   ['8', 'modprobe'],
   ['8', 'rmmod'],
 ]
+
+man_targets = []
 foreach tuple : _man_pages
   section = tuple[0]
   man = tuple[1]
 
 foreach tuple : _man_pages
   section = tuple[0]
   man = tuple[1]
 
-  custom_target(
+  man_targets += custom_target(
     f'man_@section@_@man@',
     command : [
       build_scdoc,
     f'man_@section@_@man@',
     command : [
       build_scdoc,
@@ -44,7 +46,7 @@ foreach tuple : _man_aliases
   man = tuple[1]
   dest = tuple[2]
 
   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@',
     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
     install_dir : get_option('mandir') / f'man@section@',
   )
 endforeach
+
+alias_target('man', man_targets)