diff --git a/src/meson.build b/src/meson.build index e97ee25d3..a53e6000f 100644 --- a/src/meson.build +++ b/src/meson.build @@ -254,13 +254,15 @@ if get_option('man') install: true, install_dir: join_paths(mandir, 'man1'), ) - configure_file( - input: 'fwupdagent.1', - output: 'fwupdagent.1', - configuration: conf, - install: true, - install_dir: join_paths(mandir, 'man1'), - ) + if get_option('compat_cli') + configure_file( + input: 'fwupdagent.1', + output: 'fwupdagent.1', + configuration: conf, + install: true, + install_dir: join_paths(mandir, 'man1'), + ) + endif endif if build_standalone configure_file(