mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 13:47:19 +00:00
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:
parent
2cb9a4a251
commit
3dfb1189f2
1 changed files with 3 additions and 2 deletions
5
Makefile
5
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"
|
||||
|
|
Loading…
Reference in a new issue