perl: Rerun configure if MAX_PROC_NR changes.
[libguestfs.git] / perl / Makefile.am
index c192290..e1a6455 100644 (file)
@@ -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.