[libvirt] [PATCH] maint: allow VPATH use of remote_protocol-structs

Eric Blake eblake at redhat.com
Mon May 10 21:43:48 UTC 2010


* src/Makefile.am (remote_protocol-structs): Ensure file lives in srcdir.
---

Jim's new check didn't quite work in a VPATH setup.

I'm applying it as obvious, since it was a build-breaker:

  GEN    remote_protocol-structs
diff: remote_protocol-structs: No such file or directory
make[3]: *** [remote_protocol-structs] Error 2

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

diff --git a/src/Makefile.am b/src/Makefile.am
index 1542ab1..15bc8fc 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -179,7 +179,7 @@ remote_protocol-structs:
 		-e '      $$p =~ s!\s+$$!!;'				\
 		-e '      print "$$p\n" } }'				\
 		> $@-t;							\
-	  diff -u $@-t $@; st=$$?; rm -f $@-t; exit $$st;		\
+	  diff -u $@-t $(srcdir)/$@; st=$$?; rm -f $@-t; exit $$st;	\
 	else								\
 	  echo 'WARNING: you lack pdwtags; skipping the $@ test';	\
 	  echo 'WARNING: install the dwarves package to get pdwtags';	\
-- 
1.7.0.1




More information about the libvir-list mailing list