This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix minitest target in Win32 makefiles
[perl5.git] / win32 / makefile.mk
index 2147995..03476dd 100644 (file)
@@ -1257,16 +1257,17 @@ inst_lib : $(CONFIGPM)
        $(RCOPY) ..\lib $(INST_LIB)\*.*
 
 minitest : $(MINIPERL) $(GLOBEXE) $(CONFIGPM) utils
        $(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\*.*
 .IF "$(CCTYPE)" == "BORLAND"
        $(XCOPY) $(GLOBBAT) ..\t\$(NULL)
 .ELSE
        $(XCOPY) $(GLOBEXE) ..\t\$(NULL)
 .ENDIF
        attrib -r ..\t\*.*
-       copy test ..\t
        cd ..\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)
 
 test-prep : all utils
        $(XCOPY) $(PERLEXE) ..\t\$(NULL)