1 GOTOOLS = github.com/mitchellh/gox \
2 github.com/Masterminds/glide
3 PACKAGES = $(shell go list ./... | grep -v '/vendor/' | grep -v '/rpc/')
7 install: get_vendor_deps copy
8 @go install --ldflags '-extldflags "-static"' \
9 --ldflags "-X github.com/Bytom/blockchain/version.GitCommit=`git rev-parse HEAD`" ./node/
12 get_vendor_deps: ensure_tools
14 @echo "====> Running glide install"
20 # In case of the terrible network condition
22 @cp -r vendor/github.com/golang/crypto vendor/golang.org/x/crypto
23 @cp -r vendor/github.com/golang/net vendor/golang.org/x/net
24 @cp -r vendor/github.com/golang/text vendor/golang.org/x/text
25 @cp -r vendor/github.com/golang/tools vendor/golang.org/x/tools
26 @cp -r vendor/github.com/golang/time vendor/golang.org/x/time
29 @echo "=====> Running go test"
32 .PHONY: install get_vendor_deps ensure_tools copy test