From 41f3b64c14808a0d44c84f1659f5a1aff2e11f89 Mon Sep 17 00:00:00 2001 From: AnnaShaleva Date: Wed, 17 Nov 2021 18:42:03 +0300 Subject: [PATCH] Makefile: use GOEXE to build on windows Turns out that there's already special goenv variable to build with proper extension. --- Makefile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Makefile b/Makefile index f32b692b5..60fc274d6 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,7 @@ BRANCH = "master" REPONAME = "neo-go" NETMODE ?= "privnet" -GOOS ?= $(shell go env GOOS) -EXTENSION= -ifeq ($(GOOS),windows) - EXTENSION=".exe" -endif -BINARY=./bin/neo-go$(EXTENSION) +BINARY=./bin/neo-go$(shell go env GOEXE) DESTDIR = "" SYSCONFIGDIR = "/etc" BINDIR = "/usr/bin"