From 83ab8efbd7164f862acdf13ad42d15b6a7a52c86 Mon Sep 17 00:00:00 2001 From: Alvaro Burnett Date: Sun, 19 Aug 2018 22:07:16 +0200 Subject: [PATCH] Improve compatibility with the Unix tools included in Git for Windows. Previously the Makefile, when run on Windows, expected the uname command to report either "MINGW" or "windows32". This was unfortunate because the uname included in Git for Windows reports "MSYS". With this change, the Makefile will work properly with any uname, whether it comes from MinGW, GnuWin32 or Git for Windows. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index d81c774..1b41474 100755 --- a/Makefile +++ b/Makefile @@ -9,6 +9,10 @@ PLATFORM := windows32 USE_WINDRES := true endif +ifneq ($(findstring MSYS,$(PLATFORM)),) +PLATFORM := windows32 +endif + ifeq ($(PLATFORM),Darwin) DEFAULT := cocoa else