[libvirt] [PATCH] build: fix VPATH build of todo

Eric Blake eblake at redhat.com
Thu Jul 14 15:43:40 UTC 2011


Without this patch, the make rule in a VPATH build was trying to
invoke ../../docs/../../docs/todo.pl, which didn't exist.

* docs/Makefile.am (todo.html.in): Using $< already implies
$(srcdir) in GNU make VPATH situations.
---

Pushing under the trivial rule.

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

diff --git a/docs/Makefile.am b/docs/Makefile.am
index 050ebe1..7ff94a0 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -104,7 +104,7 @@ web: $(dot_html) html/index.html devhelp/index.html
 todo.html.in: todo.pl
 	if [ -f  todo.cfg ]; then \
 		echo "Generating $@"; \
-		$(PERL) $(srcdir)/$< > $@ \
+		$(PERL) $< > $@ \
 		|| { rm $@ && exit 1; }; \
 	else \
 		echo "Stubbing $@"; \
-- 
1.7.4.4




More information about the libvir-list mailing list