1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-08-25 13:50:09 +03:00

meson: don't install sysconf files unconditionally

There's no need to install sysconf files when init script installation
was not requested, i.e. when configured with init_script=none.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Roman Bogorodskiy
2020-08-26 17:47:14 +04:00
parent 015b32659d
commit 4955a459f4

View File

@ -858,13 +858,15 @@ if conf.has('WITH_LIBVIRTD')
endif endif
endif endif
foreach sysconf : sysconf_files if init_script != 'none'
install_data( foreach sysconf : sysconf_files
sysconf['file'], install_data(
install_dir: sysconfdir / 'sysconfig', sysconf['file'],
rename: [ sysconf['name'] ], install_dir: sysconfdir / 'sysconfig',
) rename: [ sysconf['name'] ],
endforeach )
endforeach
endif
if conf.has('WITH_DTRACE_PROBES') if conf.has('WITH_DTRACE_PROBES')
custom_target( custom_target(