Makes Win32 use ExtUtils::Command::rm_f as a rm -f replacemnt.

Regards
Mattia

Index: Configure.pl
===================================================================
RCS file: /home/perlcvs/parrot/Configure.pl,v
retrieving revision 1.19
diff -u -2 -r1.19 Configure.pl
--- Configure.pl        2001/09/23 14:50:48     1.19
+++ Configure.pl        2001/09/26 21:04:30
@@ -85,4 +85,5 @@
        perl =>                 $^X,
        debugging =>    $opt_debugging,
+       rm_f =>         'rm -f',
 );
 
Index: Makefile.in
===================================================================
RCS file: /home/perlcvs/parrot/Makefile.in,v
retrieving revision 1.14
diff -u -2 -r1.14 Makefile.in
--- Makefile.in 2001/09/26 18:13:50     1.14
+++ Makefile.in 2001/09/26 21:04:30
@@ -1,3 +1,4 @@
 O = ${o}
+RM_F = ${rm_f}
 
 INC=include/parrot
@@ -19,5 +20,5 @@
 PDUMP = pdump${exe}
 
-.c.o:
+.c$(O):
        $(CC) $(CFLAGS) -o $@ -c $<
 
@@ -64,9 +65,9 @@
        $(PERL) make_op_header.pl opcode_table > $(INC)/op.h
 
-config.h: Configure.pl config_h.in
+$(INC)/config.h: Configure.pl config_h.in
        $(PERL) Configure.pl
 
 clean:
-       rm -f *$(O) *.s basic_opcodes.c $(INC)/interp_guts.h $(INC)/op.h $(TEST_PROG)
+       $(RM_F) *$(O) *.s basic_opcodes.c $(INC)/interp_guts.h $(INC)/op.h $(TEST_PROG)
 
 test:
@@ -75,3 +76,2 @@
 update:
        cvs -q update -dP
-
Index: hints/mswin32.pl
===================================================================
RCS file: /home/perlcvs/parrot/hints/mswin32.pl,v
retrieving revision 1.1
diff -u -2 -r1.1 mswin32.pl
--- hints/mswin32.pl    2001/09/16 22:06:45     1.1
+++ hints/mswin32.pl    2001/09/26 21:04:30
@@ -3,4 +3,5 @@
        my $is_mingw = grep { $c{cc} eq $_ } ( qw(gcc gcc.exe) );
 
+        $c{rm_f} = '$(PERL) -MExtUtils::Command -e rm_f';
        if( $is_msvc ) {
                $c{o} = '.obj';
@@ -15,3 +16,3 @@
                $c{libs} = ' ' if $c{libs} =~ m/\.lib\s/i;
        }
-}
\ No newline at end of file
+}

Reply via email to