Skip to content

Commit

Permalink
[#285] Makefile: Install neo-go in the current directory
Browse files Browse the repository at this point in the history
`go install` doesn't have `-o` flag but it respects `GOBIN` environment
variable.

Signed-off-by: Evgenii Stratonikov <[email protected]>
  • Loading branch information
fyrchik committed Nov 23, 2022
1 parent beaef7b commit 9052ec6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
config.json
/vendor/
.idea
/bin/
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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")

Expand Down Expand Up @@ -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\
Expand Down

0 comments on commit 9052ec6

Please sign in to comment.