Suppress leaked warnings in ExtUtils tests
[p5sagit/p5-mst-13.2.git] / lib / ExtUtils / MM_Any.pm
index 86e1ae9..4d89b0d 100644 (file)
@@ -2,7 +2,7 @@ package ExtUtils::MM_Any;
 
 use strict;
 use vars qw($VERSION @ISA);
-$VERSION = '0.12';
+$VERSION = '0.13';
 
 use File::Spec;
 BEGIN { @ISA = qw(File::Spec); }
@@ -524,7 +524,7 @@ sub dir_target {
     my $make = '';
     foreach my $dir (@dirs) {
         $make .= sprintf <<'MAKE', ($dir) x 7;
-%s$(DFSEP).exists :
+%s$(DFSEP).exists :: Makefile.PL
        $(NOECHO) $(MKPATH) %s
        $(NOECHO) $(CHMOD) 755 %s
        $(NOECHO) $(TOUCH) %s$(DFSEP).exists
@@ -771,9 +771,11 @@ sub realclean {
     my @dirs  = qw($(DISTVNAME));
     my @files = qw($(FIRST_MAKEFILE) $(MAKEFILE_OLD));
 
-    if ($self->{PERL_CORE}) {
+    # Special exception for the perl core where INST_* is not in blib.
+    # This cleans up the files built from the ext/ directory (all XS).
+    if( $self->{PERL_CORE} ) {
        push @dirs, qw($(INST_AUTODIR) $(INST_ARCHAUTODIR));
-       push @files, values %{$self->{PM}};
+        push @files, values %{$self->{PM}};
     }
 
     if( $self->has_link_code ){
@@ -1372,7 +1374,7 @@ Defines at least these macros.
                     file
 
   UMASK_NULL        Nullify umask
-  DEV_NULL          Supress all command output
+  DEV_NULL          Suppress all command output
 
 
 =head3 init_DIRFILESEP  I<Abstract>