Skip to content

Commit 29bfa6a

Browse files
committed
meson: Add 'man' alias target
Allow to build all man pages without depending on the rest of the build. Signed-off-by: Lucas De Marchi <demarchi@kernel.org>
1 parent 0bccde1 commit 29bfa6a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

man/meson.build

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ _man_pages = [
1212
['8', 'modprobe'],
1313
['8', 'rmmod'],
1414
]
15+
16+
man_targets = []
1517
foreach tuple : _man_pages
1618
section = tuple[0]
1719
man = tuple[1]
1820

19-
custom_target(
21+
man_targets += custom_target(
2022
f'man_@section@_@man@',
2123
command : [
2224
build_scdoc,
@@ -44,7 +46,7 @@ foreach tuple : _man_aliases
4446
man = tuple[1]
4547
dest = tuple[2]
4648

47-
custom_target(
49+
man_targets += custom_target(
4850
f'man_@section@_@man@',
4951
command : ['echo', f'.so @dest@'],
5052
output : f'@man@.@section@',
@@ -53,3 +55,5 @@ foreach tuple : _man_aliases
5355
install_dir : get_option('mandir') / f'man@section@',
5456
)
5557
endforeach
58+
59+
alias_target('man', man_targets)

0 commit comments

Comments
 (0)