[Pkg-libvirt-commits] [libguestfs] 229/233: builder: Fix dependencies which are not generated correctly by automake.

Hilko Bengen bengen at moszumanska.debian.org
Wed Feb 19 21:12:32 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 360abeebda97e9940a4045a331ce181d1a370719
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Mon Feb 17 09:13:42 2014 +0000

    builder: Fix dependencies which are not generated correctly by automake.
    
    See the error messages here:
    https://www.redhat.com/archives/libguestfs/2014-February/msg00148.html
    
    This fixes commit e2cc8b6465a400024fe2f0fcce0d0ff5f7e7719c.
---
 builder/Makefile.am | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/builder/Makefile.am b/builder/Makefile.am
index 3087ac4..6313bad 100644
--- a/builder/Makefile.am
+++ b/builder/Makefile.am
@@ -246,9 +246,11 @@ CLEANFILES += \
 	index-scan.c \
 	stamp-virt-index-validate.pod
 
-# Fix dependencies which automake doesn't generate correctly.
 if HAVE_OCAML
-index-parser-c.o: index-parse.h index-struct.h
-index-scan.o: index-parse.h
+# Automake-generated makefile has a rule ".l.c:" but lacks a rule ".l.h:".
+# Also it doesn't generate dependencies for the C files that include
+# index-parse.h.
+index-parser-c.c index-scan.c index-validate.c: index-parse.h
+index-parse.h: index-parse.y
+	$(MAKE) index-parse.c
 endif
-index-validate.o: index-parse.h

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list