From: Peter Rabbitson Date: Fri, 25 Jan 2013 12:25:52 +0000 (+0100) Subject: Stop `perl Makefile.PL` from recursing into distdirs if present X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3054407e9;p=dbsrgits%2FDBIx-Class-Historic.git Stop `perl Makefile.PL` from recursing into distdirs if present --- diff --git a/Makefile.PL b/Makefile.PL index 5212dcd..a20a3a0 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -12,6 +12,7 @@ use inc::Module::Install 1.06; # for that) BEGIN { $Module::Install::AUTHOR = 0 if (grep { $ENV{"PERL5_${_}_IS_RUNNING"} } (qw/CPANM CPANPLUS CPAN/) ); + makemaker_args( NORECURS => 1 ); } homepage 'http://www.dbix-class.org/'; @@ -154,6 +155,7 @@ if ($Module::Install::AUTHOR and ! $ENV{MAKELEVEL}) { # We need the MM facilities to generate the pieces for the final MM run. # Just instantiate a throaway object here my $mm_proto = ExtUtils::MakeMaker->new({ + NORECURS => 1, NAME => Meta->name || die 'The Module::Install metadata must be available at this point but is not - did you rearrange the Makefile.PL...?', });