toolbox/doc/meson.build
Debarshi Ray 8b2d25f1e8 build: Replace join_paths with the / operator
Since Meson 0.49.0, the / operator on strings is equivalent to calling
join_paths() [1], and the former is less verbose, and easier to read.

[1] https://mesonbuild.com/Reference-manual_functions.html#join_paths

https://github.com/containers/toolbox/pull/1141
2022-10-21 17:24:03 +02:00

39 lines
689 B
Meson

go_md2man_command = [
go_md2man,
'-in', '@INPUT@',
'-out', '@OUTPUT@',
]
manuals = {
'1': [
'toolbox',
'toolbox-create',
'toolbox-enter',
'toolbox-init-container',
'toolbox-help',
'toolbox-list',
'toolbox-rm',
'toolbox-rmi',
'toolbox-run',
],
'5': [
'toolbox.conf',
]
}
foreach section, pages: manuals
foreach page: pages
output = page + '.' + section
input = output + '.md'
sectiondir = 'man' + section
custom_target(
output,
command: go_md2man_command,
input: input,
install: true,
install_dir: get_option('mandir') / sectiondir,
output: output,
)
endforeach
endforeach