From 1380c68cf3e9a59677c53cec057fcbbf4c580b2a Mon Sep 17 00:00:00 2001 From: mrdudz Date: Fri, 10 Jul 2015 20:04:31 +0200 Subject: [PATCH] workaround for cmd.exe rmdir --- test/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5