]> xenbits.xensource.com Git - libvirt.git/commitdiff
daemon: Install virt-guest-shutdown.target properly
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 29 Nov 2016 15:28:05 +0000 (16:28 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 29 Nov 2016 15:31:52 +0000 (16:31 +0100)
When trying to install libvirtd from sources I've noticed the
following failure:

/usr/bin/install: cannot stat 'virt-guest-shutdown.target': No such file or directory
Makefile:2792: recipe for target 'install-init-systemd' failed
make[3]: *** [install-init-systemd] Error 1
make[3]: *** Waiting for unfinished jobs....

The problem is that while other files around that location in
Makefile are firstly generated into the builddir and only after
that installed, virt-guest-shutdown.target file is not generated
at all and should be installed from the srcdir.

This was introduced in 01079727.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
daemon/Makefile.am

index 463db6ee6327a896c515dde65d81a162e19b2d42..60c73686ff62d97280c1dbade2a18c56ef97fe22 100644 (file)
@@ -457,7 +457,7 @@ install-init-systemd: install-sysconfig libvirtd.service
        $(MKDIR_P) $(DESTDIR)$(SYSTEMD_UNIT_DIR)
        $(INSTALL_DATA) libvirtd.service \
          $(DESTDIR)$(SYSTEMD_UNIT_DIR)/libvirtd.service
-       $(INSTALL_DATA) virt-guest-shutdown.target \
+       $(INSTALL_DATA) $(srcdir)/virt-guest-shutdown.target \
          $(DESTDIR)$(SYSTEMD_UNIT_DIR)/virt-guest-shutdown.target
 
 uninstall-init-systemd: uninstall-sysconfig