From: Matthew Booth Date: Wed, 24 Jun 2009 10:50:08 +0000 (+0100) Subject: Fix dependencies in perl so it doesn't always rebuild X-Git-Tag: 1.0.52~2^2 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=5e332cc6c06532191f793a6789bafe818f726258;hp=d3270cfadd3416bd9961a2c6fb1cc131c43979da Fix dependencies in perl so it doesn't always rebuild --- diff --git a/perl/Makefile.PL.in b/perl/Makefile.PL.in index 423b4a1..40d1d6c 100644 --- a/perl/Makefile.PL.in +++ b/perl/Makefile.PL.in @@ -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@', ); diff --git a/perl/Makefile.am b/perl/Makefile.am index 44ac42c..747ac43 100644 --- a/perl/Makefile.am +++ b/perl/Makefile.am @@ -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