Skip to content

Commit 50dec78

Browse files
committed
Makefile: put PHONY near each target
1 parent 0d25818 commit 50dec78

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
1-
.PHONY: default build test install-vet vet upgrade-deps
2-
1+
.PHONY: default
32
default: build
43

4+
.PHONY: build
55
build:
66
go build ./...
77

8+
.PHONY: test
89
test:
910
go test -cover ./...
1011

12+
.PHONY: install-vet
1113
install-vet:
1214
go install github.com/nishanths/exhaustive/cmd/exhaustive@latest
1315
go install github.com/gordonklaus/ineffassign@latest
1416
go install github.com/kisielk/errcheck@latest
1517

18+
.PHONY: vet
1619
vet:
1720
go vet ./...
1821
exhaustive ./...
1922
ineffassign ./...
2023
errcheck ./...
2124

25+
.PHONY: upgrade-deps
2226
upgrade-deps:
2327
go get golang.org/x/tools
2428
go mod tidy

0 commit comments

Comments
 (0)