avoid empty rm -f in MM_Unix.pm
Gurusamy Sarathy [Mon, 13 Jul 1998 02:58:51 +0000 (02:58 +0000)]
p4raw-id: //depot/perl@1463

lib/ExtUtils/MM_Unix.pm

index 2299973..8a7df79 100644 (file)
@@ -2923,7 +2923,8 @@ realclean purge ::  clean
         push(@m, "     $self->{RM_F} \$(INST_DYNAMIC) \$(INST_BOOT)\n");
         push(@m, "     $self->{RM_F} \$(INST_STATIC)\n");
     }
-    push(@m, " $self->{RM_F} " . join(" ", values %{$self->{PM}}) . "\n");
+    push(@m, " $self->{RM_F} " . join(" ", values %{$self->{PM}}) . "\n")
+       if keys %{$self->{PM}};
     my(@otherfiles) = ($self->{MAKEFILE},
                       "$self->{MAKEFILE}.old"); # Makefiles last
     push(@otherfiles, $attribs{FILES}) if $attribs{FILES};