Makefile: use GOEXE to build on windows
Turns out that there's already special goenv variable to build with proper extension.
This commit is contained in:
parent
a860e82e9d
commit
41f3b64c14
1 changed files with 1 additions and 6 deletions
7
Makefile
7
Makefile
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue