Makefile: fix binary name to be consistent

And return back to using `neo-go` as the binary name because it's not just a
node implementation, neo-go is capable of much more functionality.
This commit is contained in:
Roman Khimov 2019-08-28 22:05:55 +03:00
parent 2cb9a4a251
commit 3dfb1189f2

View file

@ -2,6 +2,7 @@ BRANCH = "master"
BUILD_TIME = "$(shell date -u +\"%Y-%m-%dT%H:%M:%SZ\")" BUILD_TIME = "$(shell date -u +\"%Y-%m-%dT%H:%M:%SZ\")"
REPONAME = "neo-go" REPONAME = "neo-go"
NETMODE ?= "privnet" NETMODE ?= "privnet"
BINARY = "./bin/neo-go"
REPO ?= "$(shell go list -m)" REPO ?= "$(shell go list -m)"
VERSION ?= "$(shell git describe --tags 2>/dev/null | sed 's/^v//')" VERSION ?= "$(shell git describe --tags 2>/dev/null | sed 's/^v//')"
@ -13,7 +14,7 @@ build: deps
&& export GOGC=off \ && export GOGC=off \
&& export CGO_ENABLED=0 \ && export CGO_ENABLED=0 \
&& echo $(VERSION)-$(BUILD_TIME) \ && echo $(VERSION)-$(BUILD_TIME) \
&& go build -v -mod=vendor -ldflags $(BUILD_FLAGS) -o ./bin/node ./cli/main.go && go build -v -mod=vendor -ldflags $(BUILD_FLAGS) -o ${BINARY} ./cli/main.go
image: deps image: deps
@echo "=> Building image" @echo "=> Building image"
@ -46,7 +47,7 @@ push-to-registry:
@docker push CityOfZion/${REPONAME} @docker push CityOfZion/${REPONAME}
run: build run: build
./bin/neo-go node -config-path ./config -${NETMODE} ${BINARY} node -config-path ./config -${NETMODE}
run-cluster: build-linux run-cluster: build-linux
@echo "=> Starting docker-compose cluster" @echo "=> Starting docker-compose cluster"