2020-06-09 13:04:44 +00:00
|
|
|
GO ?= go
|
|
|
|
|
|
|
|
.PHONY: fmt
|
|
|
|
fmt:
|
|
|
|
$(GO) fmt ./...
|
|
|
|
|
2020-06-12 17:01:17 +00:00
|
|
|
.PHONY: imp
|
|
|
|
imp:
|
|
|
|
imp -w
|
|
|
|
|
2020-06-09 13:04:44 +00:00
|
|
|
.PHONY: generate
|
|
|
|
generate:
|
|
|
|
$(GO) generate ./...
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test:
|
|
|
|
$(GO) test -race ./...
|
|
|
|
|
|
|
|
.PHONY: vet
|
|
|
|
vet:
|
|
|
|
$(GO) vet ./...
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build:
|
|
|
|
$(GO) build
|
|
|
|
|
|
|
|
.PHONY: build-all
|
2020-06-12 17:01:17 +00:00
|
|
|
build-all: generate build
|
|
|
|
|
|
|
|
.PHONY: check
|
|
|
|
check: generate imp fmt test vet build
|