summaryrefslogtreecommitdiffstats
path: root/perl
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-05-25 11:25:12 +0100
committerRichard Jones <rjones@redhat.com>2010-05-25 11:25:12 +0100
commitf8ee7869f4836427109959cf20e299a31fa86eaf (patch)
tree5a1478ecd892ac6368d0dacf6bd08a3377b4829f /perl
parent90c51f911366656c781868c60a96524b7be79717 (diff)
downloadlibguestfs-f8ee7869f4836427109959cf20e299a31fa86eaf.tar.gz
libguestfs-f8ee7869f4836427109959cf20e299a31fa86eaf.tar.xz
libguestfs-f8ee7869f4836427109959cf20e299a31fa86eaf.zip
perl: Rerun configure if MAX_PROC_NR changes.
If MAX_PROC_NR changes (because a new API has been added to the generator) then we need to rerun configure in order to set the Makefile's ${MAX_PROC_NR} variable, in order to rebuild Makefile.PL.
Diffstat (limited to 'perl')
-rw-r--r--perl/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl/Makefile.am b/perl/Makefile.am
index c1922900..e1a64559 100644
--- a/perl/Makefile.am
+++ b/perl/Makefile.am
@@ -61,7 +61,8 @@ INSTALLDIRS = site
all: Makefile-pl src_deps
$(MAKE) -f Makefile-pl
-Makefile-pl: Makefile.PL
+Makefile-pl: Makefile.PL $(top_srcdir)/src/MAX_PROC_NR
+ cd $(top_srcdir) && ./config.status --recheck
perl Makefile.PL INSTALLDIRS=$(INSTALLDIRS) PREFIX=$(prefix)
# No! Otherwise it is deleted before the clean-local rule runs.