Allow spaces in paths passed to mkdir and rm on bash

pull/2106/head
Jimmy Brisson 2016-07-06 12:51:14 -05:00
parent fbccf8dfc9
commit 3cf8bfbfb7
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@ ifeq ($(shell echo $$OS),$$OS)
MAKEDIR = if not exist "$(1)" mkdir "$(1)" MAKEDIR = if not exist "$(1)" mkdir "$(1)"
RM = rmdir /S /Q "$(1)" RM = rmdir /S /Q "$(1)"
else else
MAKEDIR = $(SHELL) -c "mkdir -p $(1)" MAKEDIR = $(SHELL) -c "mkdir -p \"$(1)\""
RM = $(SHELL) -c "rm -rf $(1)" RM = $(SHELL) -c "rm -rf \"$(1)\""
endif endif
ifeq (,$(filter .build,$(notdir $(CURDIR)))) ifeq (,$(filter .build,$(notdir $(CURDIR))))