# The module must build with the Go in Debian trixie (1.24) and the standard
# library alone: go.mod says "go 1.24" and has no require lines.

.PHONY: build test fmt-check vet test-go clean

build:
	go build -trimpath -o bin/dfsg-author-check ./cmd/dfsg-author-check

test: fmt-check vet test-go

fmt-check:
	@out=$$(gofmt -l .); if [ -n "$$out" ]; then echo "gofmt needed:"; echo "$$out"; exit 1; fi

vet:
	go vet ./...

test-go:
	go test ./...

clean:
	rm -rf bin
