Skip to content

Commit 9c4fd4e

Browse files
committed
Makefile: add devtools target
1 parent 07c216d commit 9c4fd4e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎Makefile‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ test: all
4040
clean:
4141
rm -fr build/_workspace/pkg/ $(GOBIN)/*
4242

43+
# The devtools target installs tools required for 'go generate'.
44+
# You need to put $GOBIN (or $GOPATH/bin) in your PATH to use 'go generate'.
45+
46+
devtools:
47+
go get -u golang.org/x/tools/cmd/stringer
48+
go get -u github.com/jteeuwen/go-bindata/go-bindata
49+
go get -u github.com/fjl/gencodec
50+
go install ./cmd/abigen
51+
4352
# Cross Compilation Targets (xgo)
4453

4554
geth-cross: geth-linux geth-darwin geth-windows geth-android geth-ios

0 commit comments

Comments
 (0)