From bfa6cf25fcad6547101d34810cf9833533a6b07a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 12 Sep 2015 01:00:52 +0200 Subject: Add msys2 platform detection This makes a lot of Erlang.mk work on Windows under the msys2 environment. The msys2 environment is damn close to native, so it will most likely be good enough for a lot of folks. --- core/core.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/core.mk') diff --git a/core/core.mk b/core/core.mk index 08294d0..c2a153c 100644 --- a/core/core.mk +++ b/core/core.mk @@ -45,7 +45,6 @@ export ERLANG_MK_TMP ERL = erl +A0 -noinput -boot start_clean # Platform detection. -# @todo Add Windows/Cygwin detection eventually. ifeq ($(PLATFORM),) UNAME_S := $(shell uname -s) @@ -66,6 +65,8 @@ else ifeq ($(UNAME_S),OpenBSD) PLATFORM = openbsd else ifeq ($(UNAME_S),DragonFly) PLATFORM = dragonfly +else ifeq ($(shell uname -o),Msys) +PLATFORM = msys2 else $(error Unable to detect platform. Please open a ticket with the output of uname -a.) endif -- cgit v1.2.3