2016-02-08 15:01:26 -08:00
|
|
|
all: test install
|
2016-02-05 23:16:33 -08:00
|
|
|
|
2017-03-16 00:43:46 -07:00
|
|
|
NOVENDOR = go list ./... | grep -v /vendor/
|
2017-01-28 09:29:32 -08:00
|
|
|
|
|
|
|
build:
|
2017-03-16 00:43:46 -07:00
|
|
|
go build ./cmd/...
|
2017-01-28 09:29:32 -08:00
|
|
|
|
|
|
|
install:
|
2017-03-16 00:43:46 -07:00
|
|
|
go install ./cmd/...
|
2016-02-05 23:16:33 -08:00
|
|
|
|
2017-06-01 20:51:35 -07:00
|
|
|
dist:
|
|
|
|
@ sudo bash scripts/dist.sh
|
|
|
|
@ bash scripts/publish.sh
|
|
|
|
|
2016-02-05 23:16:33 -08:00
|
|
|
test:
|
2017-02-24 13:24:01 -08:00
|
|
|
go test `${NOVENDOR}`
|
2017-01-13 12:29:12 -08:00
|
|
|
#go run tests/tendermint/*.go
|
2016-02-05 23:16:33 -08:00
|
|
|
|
|
|
|
get_deps:
|
2017-03-16 00:43:46 -07:00
|
|
|
go get -d ./...
|
2016-03-28 09:46:57 -07:00
|
|
|
|
|
|
|
update_deps:
|
2017-03-16 00:43:46 -07:00
|
|
|
go get -d -u ./...
|
2017-01-11 21:07:56 -08:00
|
|
|
|
|
|
|
get_vendor_deps:
|
|
|
|
go get github.com/Masterminds/glide
|
|
|
|
glide install
|
2017-01-28 09:29:32 -08:00
|
|
|
|
2017-03-14 00:25:42 -07:00
|
|
|
build-docker:
|
|
|
|
docker run -it --rm -v "$(PWD):/go/src/github.com/tendermint/basecoin" -w "/go/src/github.com/tendermint/basecoin" -e "CGO_ENABLED=0" golang:alpine go build ./cmd/basecoin
|
|
|
|
docker build -t "tendermint/basecoin" .
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -f ./basecoin
|
|
|
|
|
|
|
|
.PHONY: all build install test get_deps update_deps get_vendor_deps build-docker clean
|