mirror of https://github.com/bsnes-emu/bsnes.git
Fix "make clean" when using cmd.exe shell on Windows
This commit is contained in:
parent
1afd440c86
commit
c6918fc170
|
@ -34,15 +34,17 @@ ifeq ($(platform),)
|
|||
else
|
||||
$(error unknown platform, please specify manually.)
|
||||
endif
|
||||
endif
|
||||
|
||||
# common commands
|
||||
ifeq ($(uname),)
|
||||
# common commands
|
||||
ifeq ($(shell echo ^^),^)
|
||||
# cmd
|
||||
delete = $(info Deleting $1 ...) @del /q $(subst /,\,$1)
|
||||
rdelete = $(info Deleting $1 ...) @del /s /q $(subst /,\,$1) && if exist $(subst /,\,$1) (rmdir /s /q $(subst /,\,$1))
|
||||
else
|
||||
else
|
||||
# sh
|
||||
delete = $(info Deleting $1 ...) @rm -f $1
|
||||
rdelete = $(info Deleting $1 ...) @rm -rf $1
|
||||
endif
|
||||
endif
|
||||
|
||||
compiler.c = $(compiler) -x c -std=c11
|
||||
|
|
Loading…
Reference in New Issue