tendermint-mpc-validator/Makefile

32 lines
698 B
Makefile

GOLINT:=$(shell go list -f {{.Target}} golang.org/x/lint/golint)
all: build
build: build/signer build/key2shares
build/signer: cmd/signer/main.go $(wildcard internal/**/*.go)
CGO_ENABLED=0 go build -mod=readonly -o ./build/signer ${gobuild_flags} ./cmd/signer
build/key2shares: cmd/key2shares/main.go $(wildcard internal/**/*.go)
CGO_ENABLED=0 go build -mod=readonly -o ./build/key2shares ${gobuild_flags} ./cmd/key2shares
lint: tools
@$(GOLINT) -set_exit_status ./...
test:
@go test -short ./...
race:
@go test -race -short ./...
msan:
@go test -msan -short ./...
tools:
@go install golang.org/x/lint/golint
clean:
rm -rf build
.PHONY: all lint test race msan tools clean build