1
0
bind/Makefile

28 lines
349 B
Makefile
Raw Permalink Normal View History

2025-11-05 19:16:30 +01:00
sources = $(shell find . -name "*.go")
2025-08-27 21:03:25 +02:00
default: build
2025-11-05 19:16:30 +01:00
lib: $(sources)
2025-08-27 21:03:25 +02:00
go build
build: lib
2025-11-05 19:16:30 +01:00
check: $(sources) build
2025-08-27 21:03:25 +02:00
go test -count 1
2025-11-05 19:16:30 +01:00
.cover: $(sources) build
2025-08-27 21:03:25 +02:00
go test -count 1 -coverprofile .cover
cover: .cover
go tool cover -func .cover
showcover: .cover
go tool cover -html .cover
2025-11-05 19:16:30 +01:00
fmt: $(sources)
2025-08-27 21:03:25 +02:00
go fmt
clean:
go clean
rm -f .cover