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>
['8', 'modprobe'],
['8', 'rmmod'],
]
['8', 'modprobe'],
['8', 'rmmod'],
]
foreach tuple : _man_pages
section = tuple[0]
man = tuple[1]
foreach tuple : _man_pages
section = tuple[0]
man = tuple[1]
+ man_targets += custom_target(
f'man_@section@_@man@',
command : [
build_scdoc,
f'man_@section@_@man@',
command : [
build_scdoc,
man = tuple[1]
dest = tuple[2]
man = tuple[1]
dest = tuple[2]
+ 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@',
install_dir : get_option('mandir') / f'man@section@',
)
endforeach
install_dir : get_option('mandir') / f'man@section@',
)
endforeach
+
+alias_target('man', man_targets)