mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-24 22:15:07 +00:00
Add better handling when deleting files on Windows
Windows complains if you try to delete a file that doesn't exist. Makefiles now check if the files exist before trying to delete them.
This commit is contained in:
parent
3b80ab93ce
commit
6c0f94cbd0
|
@ -200,5 +200,6 @@ clean:
|
||||||
ifndef WINDOWS
|
ifndef WINDOWS
|
||||||
rm -f *.o libmbed*
|
rm -f *.o libmbed*
|
||||||
else
|
else
|
||||||
del /Q /F *.o libmbed*
|
if exist *.o del /Q /F *.o
|
||||||
|
if exist libmbed* del /Q /F libmbed*
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -322,7 +322,9 @@ clean:
|
||||||
ifndef WINDOWS
|
ifndef WINDOWS
|
||||||
rm -f $(APPS) $(EXTRA_GENERATED)
|
rm -f $(APPS) $(EXTRA_GENERATED)
|
||||||
else
|
else
|
||||||
del /S /Q /F *.o *.exe $(EXTRA_GENERATED)
|
if exist *.o del /S /Q /F *.o
|
||||||
|
if exist *.exe del /S /Q /F *.exe
|
||||||
|
if exist $(EXTRA_GENERATED) del /S /Q /F $(EXTRA_GENERATED)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
list:
|
list:
|
||||||
|
|
|
@ -107,7 +107,9 @@ clean:
|
||||||
ifndef WINDOWS
|
ifndef WINDOWS
|
||||||
rm -rf $(BINARIES) *.c *.datax TESTS
|
rm -rf $(BINARIES) *.c *.datax TESTS
|
||||||
else
|
else
|
||||||
del /Q /F *.c *.exe *.datax
|
if exist *.c del /Q /F *.c
|
||||||
|
if exist *.exe del /Q /F *.exe
|
||||||
|
if exist *.datax del /Q /F *.datax
|
||||||
ifneq ($(wildcard TESTS/.*),)
|
ifneq ($(wildcard TESTS/.*),)
|
||||||
rmdir /Q /S TESTS
|
rmdir /Q /S TESTS
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue