MM_Unix.pm : work around File::Find problem on VMS
[p5sagit/p5-mst-13.2.git] / lib / ExtUtils / MM_Win95.pm
index a6eddae..010900f 100644 (file)
@@ -5,7 +5,7 @@ $VERSION = 0.02;
 
 require ExtUtils::MM_Win32;
 @ISA = qw(ExtUtils::MM_Win32);
-
+use Config;
 
 =head1 NAME
 
@@ -26,11 +26,11 @@ sub dist_test {
     my($self) = shift;
     return q{
 disttest : distdir
-        cd $(DISTVNAME)
-        $(ABSPERLRUN) Makefile.PL
-        $(MAKE) $(PASTHRU)
-        $(MAKE) test $(PASTHRU)
-        cd ..
+       cd $(DISTVNAME)
+       $(ABSPERLRUN) Makefile.PL
+       $(MAKE) $(PASTHRU)
+       $(MAKE) test $(PASTHRU)
+       cd ..
 };
 }
 
@@ -58,6 +58,8 @@ sub xs_cpp {
 sub xs_o {
     my($self) = shift;
     return '' unless $self->needs_linking();
+    # having to choose between .xs -> .c -> .o and .xs -> .o confuses dmake
+    return '' if $Config{make} eq 'dmake';
     '
 .xs$(OBJ_EXT):
        $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) \\