From 3dfb1189f2828d99dca14b9da396ce4299ed46c3 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Wed, 28 Aug 2019 22:05:55 +0300 Subject: [PATCH] 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. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 02d05f42a..8979e45de 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ BRANCH = "master" BUILD_TIME = "$(shell date -u +\"%Y-%m-%dT%H:%M:%SZ\")" REPONAME = "neo-go" NETMODE ?= "privnet" +BINARY = "./bin/neo-go" REPO ?= "$(shell go list -m)" VERSION ?= "$(shell git describe --tags 2>/dev/null | sed 's/^v//')" @@ -13,7 +14,7 @@ build: deps && export GOGC=off \ && export CGO_ENABLED=0 \ && 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 @echo "=> Building image" @@ -46,7 +47,7 @@ push-to-registry: @docker push CityOfZion/${REPONAME} run: build - ./bin/neo-go node -config-path ./config -${NETMODE} + ${BINARY} node -config-path ./config -${NETMODE} run-cluster: build-linux @echo "=> Starting docker-compose cluster"