[#285] Makefile: Install neo-go in the current directory

`go install` doesn't have `-o` flag but it respects `GOBIN` environment
variable.

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
pull/1/head
Evgenii Stratonikov 2022-10-17 21:58:50 +03:00 committed by fyrchik
parent beaef7b10d
commit 9052ec62d6
2 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
config.json
/vendor/
.idea
/bin/

View File

@ -1,7 +1,9 @@
#!/usr/bin/make -f
SHELL=bash
GOBIN ?= $(shell go env GOPATH)/bin
# GOBIN is used only to install neo-go and allows to override
# the location of written binary.
export GOBIN ?= $(shell pwd)/bin
NEOGO ?= $(GOBIN)/cli
VERSION ?= $(shell git describe --tags --dirty --match "v*" --always --abbrev=8 2>/dev/null || cat VERSION 2>/dev/null || echo "develop")
@ -45,6 +47,7 @@ test:
clean:
find . -name '*.nef' -exec rm -rf {} \;
find . -name 'config.json' -exec rm -rf {} \;
rm -rf ./bin/
mr_proper: clean
for sc in $(alphabet_sc); do\