winbuild: only delete OUTFILE if it exists

This removes the slightly annoying "Could not file LIBCURL_OBJS.inc" and
"Could not find CURL_OBJS.inc.inc" message when building into a clean
folder.

closes #2602
This commit is contained in:
richardthe3rd 2018-05-24 15:11:44 +01:00 committed by Daniel Stenberg
parent d0f1d6c8fa
commit 8ff7555891
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1,5 +1,7 @@
@echo OFF
@del %OUTFILE%
@if exist %OUTFILE% (
del %OUTFILE%
)
@echo %MACRO_NAME% = \> %OUTFILE%
@for %%i in (%*) do @echo %DIROBJ%/%%i \>> %OUTFILE%
@echo. >> %OUTFILE%