From: Richard Jones Date: Tue, 25 May 2010 10:25:12 +0000 (+0100) Subject: perl: Rerun configure if MAX_PROC_NR changes. X-Git-Tag: 1.3.15~12 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=f8ee7869f4836427109959cf20e299a31fa86eaf 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. --- diff --git a/perl/Makefile.am b/perl/Makefile.am index c192290..e1a6455 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.