mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-17 13:12:43 +00:00

docbook2man's --output argument is expecting a directory feeding it the location of the man page just puts the man page under a directory with the same name in the build directory.
24 lines
629 B
Meson
24 lines
629 B
Meson
docbook2man = find_program('docbook2man', required : false)
|
|
if docbook2man.found()
|
|
custom_target('fwupdmgr-man',
|
|
input : 'fwupdmgr.sgml',
|
|
output : 'fwupdmgr.1',
|
|
command : [
|
|
docbook2man, '@INPUT@',
|
|
'--output', meson.current_build_dir(),
|
|
],
|
|
install : true,
|
|
install_dir : join_paths(get_option('mandir'), 'man1'),
|
|
)
|
|
custom_target('dfu-tool-man',
|
|
input : 'dfu-tool.sgml',
|
|
output : 'dfu-tool.1',
|
|
command : [
|
|
docbook2man, '@INPUT@',
|
|
'--output', meson.current_build_dir(),
|
|
],
|
|
install : true,
|
|
install_dir : join_paths(get_option('mandir'), 'man1'),
|
|
)
|
|
endif
|