toyohime/Makefile
kare.nuorteva b9a36cf266 Add vanity Makefile
git-svn-id: file:///srv/svn/repo/toyohime/trunk@3 922d331f-388e-da47-97a9-ad700dc0b8b9
2016-10-20 08:36:09 +00:00

33 lines
483 B
Makefile

NAME := kkn.fi/vanity
.PHONY: build test vet lint errcheck cover heat check
build:
go build $(NAME)/...
test:
go test -v $(NAME)/...
vet:
go vet $(NAME)/...
lint:
golint $(NAME)/...
errcheck:
errcheck $(NAME)/...
cover:
go test -coverprofile=coverage.out $(NAME)
go tool cover -html=coverage.out
@rm -f coverage.out
heat:
go test -covermode=count -coverprofile=count.out $(NAME)
go tool cover -html=count.out
@rm -f count.out
check: vet lint errcheck test heat