Skip to content

Commit

Permalink
Only invoke the author Makefile.PL includes if we are not part of a `…
Browse files Browse the repository at this point in the history
…make` run
  • Loading branch information
ribasushi committed Jan 30, 2012
1 parent 8b280ee commit c78f9f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile.PL
Expand Up @@ -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(
Expand Down

0 comments on commit c78f9f5

Please sign in to comment.