]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
src: Only install SysV init scripts when libvirtd is built
authorAndrea Bolognani <abologna@redhat.com>
Thu, 10 Jan 2019 13:05:31 +0000 (14:05 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 10 Jan 2019 15:48:12 +0000 (16:48 +0100)
This is consistent with the way we already handle
configuration for other init systems such as upstart and
systemd.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/Makefile.am

index 0a8f54120df474b63ca99570a44907801b0b4c53..82a96adb99df9d926b348e0206b78b8dd1bcee05 100644 (file)
@@ -810,6 +810,7 @@ install-logrotate:
 uninstall-logrotate:
 endif ! WITH_LIBVIRTD
 
+if WITH_LIBVIRTD
 if LIBVIRT_INIT_SCRIPT_RED_HAT
 initdir = $(sysconfdir)/rc.d/init.d
 
@@ -830,6 +831,10 @@ else ! LIBVIRT_INIT_SCRIPT_RED_HAT
 install-init::
 uninstall-init::
 endif ! LIBVIRT_INIT_SCRIPT_RED_HAT
+else ! WITH_LIBVIRTD
+install-init::
+uninstall-init::
+endif ! WITH_LIBVIRTD
 
 
 %.8: %.8.in $(top_srcdir)/configure.ac