toyohime/Makefile
kare.nuorteva 3cd1c026a8 Makefile: Fix lint
git-svn-id: file:///srv/svn/repo/toyohime/trunk@72 922d331f-388e-da47-97a9-ad700dc0b8b9
2018-01-11 13:59:30 +00:00

33 lines
539 B
Makefile

NAME := kkn.fi/vanity
GOMETALINTER := $(GOPATH)/bin/gometalinter
.PHONY: build
build:
go build $(NAME)
.PHONY: test
test:
go test -v $(NAME)
.PHONY: lint
lint: $(GOMETALINTER)
gometalinter ./...
$(GOMETALINTER):
go get -u github.com/alecthomas/gometalinter
gometalinter --install
.PHONY: cover
cover:
go test -coverprofile=coverage.out $(NAME)
go tool cover -html=coverage.out
@rm -f coverage.out
.PHONY: heat
heat:
go test -covermode=count -coverprofile=count.out $(NAME)
go tool cover -html=count.out
@rm -f count.out