Check for OSTYPE instead of OS

It better detects sh vs. batch
pull/2060/head
Jimmy Brisson 2016-06-30 11:21:09 -05:00
parent d6d0202236
commit 6c1c7a5955
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# see http://mbed.org/handbook/Exporting-to-GCC-ARM-Embedded
# cross-platform directory manipulation
ifeq ($(OS),Windows_NT)
ifeq ($(OSTYPE),)
MAKEDIR = if not exist "$(1)" mkdir "$(1)"
RM = rmdir /S /Q
else