2019-02-28 17:07:24 +00:00
|
|
|
go_md2man_command = [
|
|
|
|
go_md2man,
|
|
|
|
'-in', '@INPUT@',
|
|
|
|
'-out', '@OUTPUT@',
|
|
|
|
]
|
|
|
|
|
2021-12-17 01:49:53 +00:00
|
|
|
manuals = {
|
|
|
|
'1': [
|
|
|
|
'toolbox',
|
|
|
|
'toolbox-create',
|
|
|
|
'toolbox-enter',
|
|
|
|
'toolbox-init-container',
|
|
|
|
'toolbox-help',
|
|
|
|
'toolbox-list',
|
|
|
|
'toolbox-rm',
|
|
|
|
'toolbox-rmi',
|
|
|
|
'toolbox-run',
|
|
|
|
],
|
2021-12-17 01:24:53 +00:00
|
|
|
'5': [
|
|
|
|
'toolbox.conf',
|
|
|
|
]
|
2021-12-17 01:49:53 +00:00
|
|
|
}
|
2019-02-28 17:07:24 +00:00
|
|
|
|
2021-12-17 01:49:53 +00:00
|
|
|
foreach section, pages: manuals
|
|
|
|
foreach page: pages
|
|
|
|
output = page + '.' + section
|
|
|
|
input = output + '.md'
|
|
|
|
sectiondir = 'man' + section
|
2019-02-28 17:07:24 +00:00
|
|
|
|
2021-12-17 01:49:53 +00:00
|
|
|
custom_target(
|
|
|
|
output,
|
|
|
|
command: go_md2man_command,
|
|
|
|
input: input,
|
|
|
|
install: true,
|
2022-10-21 14:50:31 +00:00
|
|
|
install_dir: get_option('mandir') / sectiondir,
|
2021-12-17 01:49:53 +00:00
|
|
|
output: output,
|
|
|
|
)
|
|
|
|
endforeach
|
2019-02-28 17:07:24 +00:00
|
|
|
endforeach
|