Fix minitest target in Win32 makefiles
authorSteve Hay <SteveHay@planit.com>
Fri, 12 Mar 2004 15:52:23 +0000 (15:52 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Fri, 12 Mar 2004 18:26:34 +0000 (18:26 +0000)
Message-ID: <4051DCB7.107@uk.radan.com>

p4raw-id: //depot/perl@22489

win32/Makefile
win32/makefile.mk

index d84b4a8..0d45d09 100644 (file)
@@ -1124,13 +1124,13 @@ inst_lib : $(CONFIGPM)
        $(RCOPY) ..\lib $(INST_LIB)\*.*
 
 minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils
-       $(XCOPY) $(MINIPERL) ..\t\perl.exe
+       $(XCOPY) $(MINIPERL) ..\t\$(NULL)
+       if exist ..\t\perl.exe del /f ..\t\perl.exe
+       rename ..\t\miniperl.exe perl.exe
        $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
        attrib -r ..\t\*.*
-       copy test ..\t
-       cd ..\t
-       $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
-       cd ..\win32
+       cd ..\t && \
+       $(MINIPERL) -I..\lib harness base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
 
 test-prep : all utils
        $(XCOPY) $(PERLEXE) ..\t\$(NULL)
index 2147995..03476dd 100644 (file)
@@ -1257,16 +1257,17 @@ inst_lib : $(CONFIGPM)
        $(RCOPY) ..\lib $(INST_LIB)\*.*
 
 minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils
-       $(XCOPY) $(MINIPERL) ..\t\perl.exe
+       $(XCOPY) $(MINIPERL) ..\t\$(NULL)
+       if exist ..\t\perl.exe del /f ..\t\perl.exe
+       rename ..\t\miniperl.exe perl.exe
 .IF "$(CCTYPE)" == "BORLAND"
        $(XCOPY) $(GLOBBAT) ..\t\$(NULL)
 .ELSE
        $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
 .ENDIF
        attrib -r ..\t\*.*
-       copy test ..\t
        cd ..\t && \
-       $(MINIPERL) -I..\lib test base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
+       $(MINIPERL) -I..\lib harness base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t
 
 test-prep : all utils
        $(XCOPY) $(PERLEXE) ..\t\$(NULL)