[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



* 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]