cosmos-sdk/examples/basecoin/Makefile
Adrian Brink 9ec5f37a02
Fix installation process for basecoind from top-level folder
The make build command only works if you install the dependencies first.
Previously you had to cd into examples/basecoin and run get_vendor_deps
and then cd into cosmos-sdk and then run build.

With this change a user can just run build in the top-level folder and
the dependencies are installed automatically.
2018-02-20 13:00:48 +01:00

23 lines
506 B
Makefile

PACKAGES=$(shell go list ./... | grep -v '/vendor/')
BUILD_FLAGS = -ldflags "-X github.com/cosmos/cosmos-sdk/examples/basecoin/version.GitCommit=`git rev-parse --short HEAD`"
all: get_tools get_vendor_deps build test
get_tools:
go get github.com/tendermint/glide
build:
go build $(BUILD_FLAGS) -o build/basecoin ./cmd/...
get_vendor_deps:
@rm -rf vendor/
@glide install
test:
@go test $(PACKAGES)
benchmark:
@go test -bench=. $(PACKAGES)
.PHONY: get_tools build get_vendor_deps test benchmark