fwupd/docs/man/meson.build
Mario Limonciello e55f52de09 fix man page installation location
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.
2017-04-28 15:27:59 -05:00

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