Some cleanups and code dedup of Top and FetchFirst limit dialects
[dbsrgits/DBIx-Class.git] / Makefile.PL
index eb3c764..28d5dac 100644 (file)
@@ -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(
@@ -127,7 +128,9 @@ if ($Module::Install::AUTHOR) {
   my $args = {
     skip_author_deps => undef,
   };
-  $getopt->getoptions($args, 'skip_author_deps');
+  $getopt->getoptions($args, qw/
+    skip_author_deps|skip-author-deps
+  /);
   if (@ARGV) {
     warn "\nIgnoring unrecognized option(s): @ARGV\n\n";
   }
@@ -143,7 +146,7 @@ if ($Module::Install::AUTHOR) {
 }
 else {
   # make sure this Makefile can not be used to make a dist
-  # (without the author includes there are no sanity checks)
+  # (without the author includes there are no meta cleanup, no sanity checks, etc)
   postamble <<EOP;
 .PHONY: nonauthor_stop_distdir_creation
 create_distdir: nonauthor_stop_distdir_creation