2018-02-08 23:05:32 -08:00
|
|
|
PACKAGES=$(shell go list ./... | grep -v '/vendor/')
|
2018-01-20 22:03:33 -08:00
|
|
|
BUILD_FLAGS = -ldflags "-X github.com/cosmos/cosmos-sdk/examples/basecoin/version.GitCommit=`git rev-parse --short HEAD`"
|
|
|
|
|
2018-02-25 10:12:15 -08:00
|
|
|
all: get_tools get_vendor_deps build test
|
|
|
|
|
|
|
|
get_tools:
|
|
|
|
go get github.com/golang/dep/cmd/dep
|
2018-01-20 22:03:33 -08:00
|
|
|
|
|
|
|
build:
|
|
|
|
go build $(BUILD_FLAGS) -o build/basecoin ./cmd/...
|
|
|
|
|
2018-02-25 10:12:15 -08:00
|
|
|
get_vendor_deps:
|
|
|
|
@rm -rf vendor/
|
|
|
|
@dep ensure
|
|
|
|
|
2018-01-20 22:03:33 -08:00
|
|
|
test:
|
|
|
|
@go test $(PACKAGES)
|
|
|
|
|
|
|
|
benchmark:
|
|
|
|
@go test -bench=. $(PACKAGES)
|
|
|
|
|
2018-02-27 08:44:20 -08:00
|
|
|
.PHONY: all build test benchmark
|