X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=87a2ef9542f8223d23a18c43ce700e293fb19a0d;hb=refs%2Ftags%2F0.40_02;hp=c86ec245dd50785f06837148578998df64481648;hpb=4dd800c6caf320d6e056af43e87e435e46b941fa;p=gitmo%2FMouse.git diff --git a/Makefile.PL b/Makefile.PL index c86ec24..87a2ef9 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -22,7 +22,7 @@ test_requires 'Test::Exception' => 0.27; # test_requires 'Test::Output' => 0.16; # too many dependencies! -include 'Test::Exception'; # work around 0.27_0x (its use of diehook might be wrong) +include_deps 'Test::Exception'; # work around 0.27_0x (its use of diehook might be wrong) recommends 'MRO::Compat' if $] < 5.010; @@ -38,8 +38,10 @@ if($] < 5.008_001){ } if(!defined $use_xs){ - require ExtUtils::CBuilder; - $use_xs = ExtUtils::CBuilder->new(quiet => 1)->have_compiler(); + $use_xs = eval { + require ExtUtils::CBuilder; + ExtUtils::CBuilder->new(quiet => 1)->have_compiler(); + }; } if($use_xs){ @@ -83,6 +85,6 @@ if (author_context()) { } } -clean_files 'lib/Mouse/Tiny.pm'; +clean_files 'lib/Mouse/Tiny.pm $(O_FILES)'; WriteAll check_nmake => 0;