aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 596eafed3c..29b2644bb8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,14 @@
ifeq ($(OS),Windows_NT)
+ ifeq '$(findstring ;,$(PATH))' ';'
+ UNIX_LIKE := FALSE
+ else
+ UNIX_LIKE := TRUE
+ endif
+else
+ UNIX_LIKE := TRUE
+endif
+
+ifeq ($(UNIX_LIKE),FALSE)
SHELL := powershell.exe
.SHELLFLAGS := -NoProfile -NoLogo
MKDIR := @$$null = new-item -itemtype directory -force