From 8e96e4fb32cf41d1acb0a4976cc13f33956dcdea Mon Sep 17 00:00:00 2001 From: Russ Magee Date: Sun, 27 Oct 2024 12:37:49 -0700 Subject: [PATCH] Use GOOS in makefile rather than MSYS for Windows MSYS/CYGWIN detection --- Makefile | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 468eac9..9b12921 100644 --- a/Makefile +++ b/Makefile @@ -43,13 +43,6 @@ ifeq ($(GOOS),) endif ifeq ($(GOOS),windows) -ifeq ($(MSYSTEM),MSYS) -WIN_MSYS=1 -endif -endif - - -ifdef WIN_MSYS INSTPREFIX = /usr else INSTPREFIX = /usr/local @@ -85,7 +78,7 @@ client: common server: common -ifeq ($(MSYSTEM),MSYS) +ifeq ($(GOOS),windows) echo "Build of xsd server for Windows not yet supported" else $(MAKE) BUILDOPTS=$(BUILDOPTS) -C xsd @@ -110,11 +103,10 @@ lint: reinstall: uninstall install install: - echo "WIN_MSYS:" $(WIN_MSYS) -ifdef WIN_MSYS +ifeq ($(GOOS),windows) cp xs/xs $(INSTPREFIX)/bin/xs cp xs/xs $(INSTPREFIX)/bin/xc - echo "Install of xsd server for Windows not yet supported" + @echo "Install of xsd server for Windows not yet supported" else cp xs/xs $(INSTPREFIX)/bin cd $(INSTPREFIX)/bin && ln -s xs xc && cd -