X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=6b45f5e1266af61d1de92b9a34a951effde6afdd;hb=823419c540f9e77090f31f11e04b14477c0372c4;hp=891bfa0b8319de81faebefb1ba1e913901906800;hpb=2af880191b27692321cb8c3f2b90de5902b7b469;p=gitmo%2FMouse.git diff --git a/Makefile.PL b/Makefile.PL index 891bfa0..6b45f5e 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -14,9 +14,6 @@ use inc::Module::Install 1.00; use Module::Install::XSUtil 0.30; use Module::Install::AuthorTests; -system($^X, 'tool/generate-mouse-tiny.pl', 'lib/Mouse/Tiny.pm') == 0 - or warn "Cannot generate Mouse::Tiny: $!"; - name 'Mouse'; all_from 'lib/Mouse.pm'; @@ -74,6 +71,12 @@ author_tests 'xt'; repository 'git://git.moose.perl.org/Mouse.git'; +system($^X, 'tool/generate-mouse-tiny.pl', 'lib/Mouse/Tiny.pm') == 0 + or warn "Cannot generate Mouse::Tiny: $!"; +makemaker_args PL_FILES => { + 'tool/generate-mouse-tiny.pl' => 'lib/Mouse/Tiny.pm', +}; + if ($Module::Install::AUTHOR) { require 'lib/Mouse/Spec.pm'; # for the version my $require_version = Mouse::Spec->MooseVersion;