24 lines
332 B
Makefile
24 lines
332 B
Makefile
BIN := ipabusedb-docker-ssh
|
|
|
|
.PHONY: build test lint fmt fmt-check check clean
|
|
|
|
build:
|
|
go build -o $(BIN) .
|
|
|
|
test:
|
|
go test ./...
|
|
|
|
fmt:
|
|
gofmt -w *.go
|
|
|
|
fmt-check:
|
|
@test -z "$$(gofmt -l .)" || { gofmt -l .; echo "gofmt: files need formatting"; exit 1; }
|
|
|
|
lint: fmt-check
|
|
go vet ./...
|
|
|
|
check: lint test build
|
|
|
|
clean:
|
|
rm -f $(BIN)
|