forked from cosmos/ethermint-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (21 loc) · 624 Bytes
/
Makefile
File metadata and controls
28 lines (21 loc) · 624 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
TMROOT = $${TMROOT:-$$HOME/.tendermint}
PACKAGES=$(shell go list ./... | grep -v '/vendor/')
install: get_vendor_deps
@go install ./cmd/ethermint
test:
@echo "--> Running go test"
@go test `${PACKAGES}`
test_race:
@echo "--> Running go test --race"
@go test -race `${PACKAGES}`
get_deps:
@go get -d `${PACKAGES}`
@go list -f '{{join .TestImports "\n"}}' ./... | \
grep -v /vendor/ | sort | uniq | \
xargs go get
get_vendor_deps:
go get github.com/Masterminds/glide
@echo "--> Running glide install"
@glide install --strip-vendor
all: install test
.PHONY: get_deps get_vendor_deps install test test_race