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-27 08:44:20 -08:00
|
|
|
all: build test
|
2018-01-20 22:03:33 -08:00
|
|
|
|
|
|
|
build:
|
|
|
|
go build $(BUILD_FLAGS) -o build/basecoin ./cmd/...
|
|
|
|
|
|
|
|
test:
|
|
|
|
@go test $(PACKAGES)
|
|
|
|
|
|
|
|
benchmark:
|
|
|
|
@go test -bench=. $(PACKAGES)
|
|
|
|
|
2018-02-27 08:44:20 -08:00
|
|
|
.PHONY: all build test benchmark
|