X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=f0756cda07229b5b0638e489e2d9517f086a7b19;hb=rfc%2Fkentnl%2Fnative_traits_flex;hp=5359a2097f9cc33a5a47dc0f80e167ce9ee234ee;hpb=6bf5d14dc3eda832a81a0ad6fef0947518ad2aca;p=gitmo%2FMoose.git diff --git a/Makefile.PL b/Makefile.PL index 5359a20..f0756cd 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,29 +1,35 @@ use strict; use warnings; -use Config; -use ExtUtils::MakeMaker; +BEGIN { + eval { require ExtUtils::MakeMaker::Dist::Zilla::Develop }; + if ($@) { + warn + "You need to install ExtUtils::MakeMaker::Dist::Zilla::Develop to run this Makefile.PL\n"; + exit 1; + } + + eval { require Test::Inline }; + if ($@) { + warn "You need to install Test::Inline to run this Makefile.PL\n"; + exit 1; + } + + ExtUtils::MakeMaker::Dist::Zilla::Develop->import(); +} use lib 'inc'; use MMHelper; +use MyInline; -warn <<'EOF'; - - ********************************* WARNING ********************************** - - This module uses Dist::Zilla for development. This Makefile.PL will let you - run the tests, but you are encouraged to install Dist::Zilla and the needed - plugins if you intend on doing any serious hacking. - - **************************************************************************** - -EOF +system( $^X, 'author/extract-inline-tests', '--quiet' ); eval MMHelper::my_package_subs(); WriteMakefile( NAME => 'Moose', test => { TESTS => 't/*.t t/*/*.t' }, - MMHelper::mm_args('dev'), + CCFLAGS => MMHelper::ccflags_static('dev'), + MMHelper::mm_args(), );