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