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
3 changed files with 8 additions and 3 deletions
|
@ -322,7 +322,9 @@ clean:
|
|||
ifndef WINDOWS
|
||||
rm -f $(APPS) $(EXTRA_GENERATED)
|
||||
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
|
||||
|
||||
list:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue