From: mrdudz Date: Fri, 10 Jul 2015 18:04:31 +0000 (+0200) Subject: workaround for cmd.exe rmdir X-Git-Tag: V2.16~252^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1380c68cf3e9a59677c53cec057fcbbf4c580b2a;p=cc65 workaround for cmd.exe rmdir --- diff --git a/test/Makefile b/test/Makefile index eb968095a..c13f2212d 100644 --- a/test/Makefile +++ b/test/Makefile @@ -13,7 +13,8 @@ ifdef CMD_EXE EXE := .exe DEL = del /f $(subst /,\,$1) MKDIR = mkdir $(subst /,\,$1) - RMDIR = rmdir /s /q $(subst /,\,$1) + DIRLIST = $(strip $(foreach dir,$1,$(wildcard $(dir)))) + RMDIR = $(if $(DIRLIST),rmdir /s /q $(subst /,\,$(DIRLIST))) else EXE := DEL = $(RM) $1