Debian Codegraph @

Makefile

raw
1 GOBIN ?= $(shell go env GOPATH)/bin
2
3 .PHONY: all
4 all: test
5
6 .PHONY: test
7 test:
8 go test -v -race ./...
9
10 .PHONY: lint
11 lint: $(GOBIN)/staticcheck
12 go vet ./...
13 staticcheck -checks all,-ST1000 ./...
14
15 $(GOBIN)/staticcheck:
16 go install honnef.co/go/tools/cmd/staticcheck@latest
17
18 .PHONY: clean
19 clean:
20 go clean