summaryrefslogtreecommitdiffstats
path: root/perl
diff options
context:
space:
mode:
authorMatthew Booth <mbooth@redhat.com>2009-06-24 11:50:08 +0100
committerMatthew Booth <mbooth@redhat.com>2009-06-24 11:50:08 +0100
commit5e332cc6c06532191f793a6789bafe818f726258 (patch)
tree3bd349071ecbd7c11fbd24f18045e793f8dfae07 /perl
parentd3270cfadd3416bd9961a2c6fb1cc131c43979da (diff)
downloadlibguestfs-5e332cc6c06532191f793a6789bafe818f726258.tar.gz
libguestfs-5e332cc6c06532191f793a6789bafe818f726258.tar.xz
libguestfs-5e332cc6c06532191f793a6789bafe818f726258.zip
Fix dependencies in perl so it doesn't always rebuild
Diffstat (limited to 'perl')
-rw-r--r--perl/Makefile.PL.in3
-rw-r--r--perl/Makefile.am6
2 files changed, 6 insertions, 3 deletions
diff --git a/perl/Makefile.PL.in b/perl/Makefile.PL.in
index 423b4a18..40d1d6c4 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 44ac42c0..747ac436 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