2025-10-31 20:24:37 +01:00
|
|
|
sources = $(shell find . -name "*.go")
|
2025-09-11 21:16:09 +02:00
|
|
|
|
|
|
|
|
default: build
|
|
|
|
|
|
2025-10-31 20:24:37 +01:00
|
|
|
build: $(sources)
|
2025-09-11 21:16:09 +02:00
|
|
|
go build
|
|
|
|
|
|
2025-10-31 20:24:37 +01:00
|
|
|
fmt: $(sources)
|
2025-09-11 21:16:09 +02:00
|
|
|
go fmt
|
2025-10-10 15:47:36 +02:00
|
|
|
|
2025-10-31 20:24:37 +01:00
|
|
|
check: $(sources)
|
2025-10-10 15:47:36 +02:00
|
|
|
go test -count 1
|
|
|
|
|
|
2025-10-31 20:24:37 +01:00
|
|
|
.cover: $(sources)
|
2025-10-10 15:47:36 +02:00
|
|
|
go test -count 1 -coverprofile .cover
|
|
|
|
|
|
|
|
|
|
cover: .cover
|
|
|
|
|
go tool cover -func .cover
|
|
|
|
|
|
|
|
|
|
showcover: .cover
|
|
|
|
|
go tool cover -html .cover
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
go clean
|
|
|
|
|
rm .cover
|