[libvirt] [PATCH] build: depend on correct file

Eric Blake eblake at redhat.com
Tue Jun 1 21:10:07 UTC 2010


Otherwise, VPATH builds fail with:

make[1]: *** No rule to make target `libvirt-guests.init', needed by `all'.

Regression introduced in commit 482e08a9.

* daemon/Makefile.am (%.init): Look in correct place for
config.status.
---

Since this is a build-breaker (albeit only VPATH builds), and since I
introduced the bug, I'm pushing this fix.

 daemon/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index 2f25c9d..df34ef1 100644
--- a/daemon/Makefile.am
+++ b/daemon/Makefile.am
@@ -239,7 +239,7 @@ uninstall-init:

 BUILT_SOURCES += libvirtd.init libvirt-guests.init

-%.init: %.init.in $(top_srcdir)/config.status
+%.init: %.init.in $(top_builddir)/config.status
 	$(AM_V_GEN)sed					\
 	    -e s!\@localstatedir\@!@localstatedir@!g	\
 	    -e s!\@sbindir\@!@sbindir@!g		\
-- 
1.7.0.1




More information about the libvir-list mailing list