From: Peter Rabbitson Date: Mon, 30 Jan 2012 08:45:55 +0000 (+0100) Subject: Only invoke the author Makefile.PL includes if we are not part of a `make` run X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c78f9f5b61dea550678570f3659576386e6c67f2;p=dbsrgits%2FDBIx-Class-Historic.git Only invoke the author Makefile.PL includes if we are not part of a `make` run --- diff --git a/Makefile.PL b/Makefile.PL index c6057cd..290045d 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -118,7 +118,8 @@ my $reqs = { test_requires => { %$test_requires }, }; -if ($Module::Install::AUTHOR) { +# only do author-includes if not part of a `make` run +if ($Module::Install::AUTHOR and ! $ENV{MAKELEVEL}) { # get options here, make $args available to all snippets require Getopt::Long; my $getopt = Getopt::Long::Parser->new(