Merge pull request #2265 from nspcc-dev/fix-win-bild

Makefile: use GOEXE to build on windows
This commit is contained in:
Roman Khimov 2021-11-17 19:23:58 +03:00 committed by GitHub
commit 00929be712
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,7 @@
BRANCH = "master" BRANCH = "master"
REPONAME = "neo-go" REPONAME = "neo-go"
NETMODE ?= "privnet" NETMODE ?= "privnet"
GOOS ?= $(shell go env GOOS) BINARY=./bin/neo-go$(shell go env GOEXE)
EXTENSION=
ifeq ($(GOOS),windows)
EXTENSION=".exe"
endif
BINARY=./bin/neo-go$(EXTENSION)
DESTDIR = "" DESTDIR = ""
SYSCONFIGDIR = "/etc" SYSCONFIGDIR = "/etc"
BINDIR = "/usr/bin" BINDIR = "/usr/bin"