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.
This commit is contained in:
Mario Limonciello 2017-04-28 15:27:59 -05:00
parent ad28e34f08
commit e55f52de09

View File

@ -2,20 +2,20 @@ docbook2man = find_program('docbook2man', required : false)
if docbook2man.found() if docbook2man.found()
custom_target('fwupdmgr-man', custom_target('fwupdmgr-man',
input : 'fwupdmgr.sgml', input : 'fwupdmgr.sgml',
output : 'fwupdmgr.1.gz', output : 'fwupdmgr.1',
command : [ command : [
docbook2man, '@INPUT@', docbook2man, '@INPUT@',
'--output', '@OUTPUT@', '--output', meson.current_build_dir(),
], ],
install : true, install : true,
install_dir : join_paths(get_option('mandir'), 'man1'), install_dir : join_paths(get_option('mandir'), 'man1'),
) )
custom_target('dfu-tool-man', custom_target('dfu-tool-man',
input : 'dfu-tool.sgml', input : 'dfu-tool.sgml',
output : 'dfu-tool.1.gz', output : 'dfu-tool.1',
command : [ command : [
docbook2man, '@INPUT@', docbook2man, '@INPUT@',
'--output', '@OUTPUT@', '--output', meson.current_build_dir(),
], ],
install : true, install : true,
install_dir : join_paths(get_option('mandir'), 'man1'), install_dir : join_paths(get_option('mandir'), 'man1'),