diff --git a/src/meson.build b/src/meson.build index 46a9c4ded..e9aac607e 100644 --- a/src/meson.build +++ b/src/meson.build @@ -193,20 +193,22 @@ if build_daemon and get_option('man') install : true, install_dir : join_paths(mandir, 'man1'), ) - custom_target('fwupdagent-man', - input : fwupdagent, - output : 'fwupdagent.1', - command : [ - help2man, '@INPUT@', - '--no-info', - '--output', '@OUTPUT@', - '--name', 'Firmware updating agent', - '--manual', 'User Commands', - '--version-string', fwupd_version, - ], - install : true, - install_dir : join_paths(mandir, 'man1'), - ) + if get_option('agent') + custom_target('fwupdagent-man', + input : fwupdagent, + output : 'fwupdagent.1', + command : [ + help2man, '@INPUT@', + '--no-info', + '--output', '@OUTPUT@', + '--name', 'Firmware updating agent', + '--manual', 'User Commands', + '--version-string', fwupd_version, + ], + install : true, + install_dir : join_paths(mandir, 'man1'), + ) + endif endif if get_option('man') custom_target('fwupdtool-man',