Move t/*/t into t/001_mouse
[gitmo/Mouse.git] / Makefile.PL
index 614a4d0..bc320e1 100755 (executable)
@@ -2,6 +2,9 @@ use strict;
 use warnings;
 use inc::Module::Install;
 
+system($^X, 'author/generate-mouse-tiny.pl', 'lib/Mouse/Tiny.pm') == 0
+    or warn "Cannot generate Mouse::Tiny: $!";
+
 name     'Mouse';
 all_from 'lib/Mouse.pm';
 
@@ -19,9 +22,6 @@ include 'Test::Exception'; # work around 0.27_0x (its use of diehook might be wr
 
 recommends 'MRO::Compat' if $] < 5.010;
 
-makemaker_args PL_FILES => { 'author/generate-mouse-tiny.pl' => 'lib/Mouse/Tiny.pm' };
-system 'author/generate-mouse-tiny.pl', 'lib/Mouse/Tiny.pm';
-
 if ($Module::Install::AUTHOR) {
     local @INC = ('lib', @INC);
     require 'lib/Mouse/Spec.pm';