toyohime/Makefile
kare.nuorteva bad819ff57 Vanity is now a library instead of an app
While at it:
	- Replace vanity server with an http.Handler
	- Rename kkn.fi/cmd/vanity to kkn.fi/vanity
	- Update README
	- Rewrite Makefile
	- Upgrade to Go 1.9

git-svn-id: file:///srv/svn/repo/toyohime/trunk@60 922d331f-388e-da47-97a9-ad700dc0b8b9
2017-09-18 18:46:42 +00:00

27 lines
389 B
Makefile

NAME := kkn.fi/vanity
.PHONY: build
build:
go build $(NAME)
.PHONY: test
test:
go test -v $(NAME)
.PHONY: lint
lint:
gometalint ./...
.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