Replace glide with dep

This commit is contained in:
Zaki Manian
2018-03-08 19:48:17 +00:00
committed by rigelrozanski
parent ce689ab4f3
commit 9afe696bf4
5 changed files with 16 additions and 9 deletions
+8 -1
View File
@@ -1,11 +1,18 @@
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: build test
all: get_tools get_vendor_deps build test
get_tools:
go get github.com/golang/dep/cmd/dep
build:
go build $(BUILD_FLAGS) -o build/basecoin ./cmd/...
get_vendor_deps:
@rm -rf vendor/
@dep ensure
test:
@go test $(PACKAGES)