Don't build/install fwupdagent man page if agent build is not requested

Otherwise build fails with:

  src/meson.build:196:2: ERROR: Unknown variable "fwupdagent".

Gentoo-bug: https://bugs.gentoo.org/711682
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
Lars Wendler 2020-03-06 16:00:23 +01:00 committed by Richard Hughes
parent c8bae2a68c
commit bacd3a44fe

View File

@ -193,20 +193,22 @@ if build_daemon and get_option('man')
install : true, install : true,
install_dir : join_paths(mandir, 'man1'), install_dir : join_paths(mandir, 'man1'),
) )
custom_target('fwupdagent-man', if get_option('agent')
input : fwupdagent, custom_target('fwupdagent-man',
output : 'fwupdagent.1', input : fwupdagent,
command : [ output : 'fwupdagent.1',
help2man, '@INPUT@', command : [
'--no-info', help2man, '@INPUT@',
'--output', '@OUTPUT@', '--no-info',
'--name', 'Firmware updating agent', '--output', '@OUTPUT@',
'--manual', 'User Commands', '--name', 'Firmware updating agent',
'--version-string', fwupd_version, '--manual', 'User Commands',
], '--version-string', fwupd_version,
install : true, ],
install_dir : join_paths(mandir, 'man1'), install : true,
) install_dir : join_paths(mandir, 'man1'),
)
endif
endif endif
if get_option('man') if get_option('man')
custom_target('fwupdtool-man', custom_target('fwupdtool-man',