flokati/Makefile

18 lines
342 B
Makefile
Raw Normal View History

2023-06-13 08:24:01 +00:00
all: test fmt build
test:
go test ./...
vet:
go vet ./...
fmt:
go list -f '{{.Dir}}' ./... | grep -v /vendor/ | xargs -L1 gofmt -l
test -z $$(go list -f '{{.Dir}}' ./... | grep -v /vendor/ | xargs -L1 gofmt -l)
lint:
go list ./... | grep -v /vendor/ | xargs -L1 golint -set_exit_status
build:
go build -o bin/flokati ./cmd/flokati