1
0
Fork 0
forked from len0rd/rockbox

Change mkdir -p to work on Windows.

Windows mkdir doesn't know about the -p option and requires paths to use \ as
path separator. Try to detect when building on Windows and use the Windows
internal function instead of relying on a compatible mkdir in the path.

Change-Id: I47d47d45edeb38c672321f77d6e91268bf744dba
This commit is contained in:
Dominik Riebeling 2013-05-11 17:22:44 +02:00
parent 8a4075d454
commit 4f3fa9accb
3 changed files with 24 additions and 7 deletions

View file

@ -11,6 +11,12 @@ ifndef V
SILENT = @
endif
ifeq ($(OS),Windows_NT)
mkdir = if not exist $(subst /,\,$(1)) mkdir $(subst /,\,$(1))
else
mkdir = mkdir -p $(1)
endif
SPEEXSRC = ../../lib/rbcodec/codecs/libspeex
INCLUDES = -I $(SPEEXSRC)
@ -124,5 +130,5 @@ clean:
$(BUILD_DIR):
@echo MKDIR $(BUILD_DIR)
$(SILENT)mkdir $(BUILD_DIR)
$(SILENT)$(call mkdir, $(BUILD_DIR))