Makefile: Fix lint
git-svn-id: file:///srv/svn/repo/toyohime/trunk@72 922d331f-388e-da47-97a9-ad700dc0b8b9
This commit is contained in:
parent
1bb417b6e8
commit
3cd1c026a8
8
Makefile
8
Makefile
@ -1,6 +1,8 @@
|
|||||||
|
|
||||||
NAME := kkn.fi/vanity
|
NAME := kkn.fi/vanity
|
||||||
|
|
||||||
|
GOMETALINTER := $(GOPATH)/bin/gometalinter
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
go build $(NAME)
|
go build $(NAME)
|
||||||
@ -10,9 +12,13 @@ test:
|
|||||||
go test -v $(NAME)
|
go test -v $(NAME)
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint:
|
lint: $(GOMETALINTER)
|
||||||
gometalinter ./...
|
gometalinter ./...
|
||||||
|
|
||||||
|
$(GOMETALINTER):
|
||||||
|
go get -u github.com/alecthomas/gometalinter
|
||||||
|
gometalinter --install
|
||||||
|
|
||||||
.PHONY: cover
|
.PHONY: cover
|
||||||
cover:
|
cover:
|
||||||
go test -coverprofile=coverage.out $(NAME)
|
go test -coverprofile=coverage.out $(NAME)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user