Fix dependencies in perl so it doesn't always rebuild
authorMatthew Booth <mbooth@redhat.com>
Wed, 24 Jun 2009 10:50:08 +0000 (11:50 +0100)
committerMatthew Booth <mbooth@redhat.com>
Wed, 24 Jun 2009 10:50:08 +0000 (11:50 +0100)
perl/Makefile.PL.in
perl/Makefile.am

index 423b4a1..40d1d6c 100644 (file)
@@ -24,5 +24,6 @@ WriteMakefile (
     VERSION => '@PACKAGE_VERSION@',
 
     LIBS => '-L@abs_top_builddir@/src/.libs -lguestfs',
-    INC => '-Wall @CFLAGS@ -I@abs_top_builddir@/src',
+    INC => '-I@abs_top_builddir@/src',
+    CCFLAGS => '@CFLAGS@',
     );
index 44ac42c..747ac43 100644 (file)
@@ -41,10 +41,12 @@ TESTS_ENVIRONMENT = \
 
 INSTALLDIRS = site
 
-all:
-       perl Makefile.PL INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix)
+all: Makefile-pl
        $(MAKE) -f Makefile-pl
 
+Makefile-pl: Makefile.PL
+       perl Makefile.PL INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix)
+
 install-data-hook:
        $(MAKE) -f Makefile-pl DESTDIR=$(DESTDIR) install