1
0
notation/Makefile
2025-10-31 20:29:29 +01:00

30 lines
444 B
Makefile

sources = $(shell find . -name "*.go")
default: build
build:
@go build ./...
check:
@go test -count 1 ./...
imports:
@goimports -w $(sources)
fmt:
@gofmt -w -s $(sources)
.coverprofile: $(sources)
@go test -count 1 -coverprofile .coverprofile
cover: .coverprofile
@go tool cover -func .coverprofile
showcover: .coverprofile
@go tool cover -html .coverprofile
check-fmt:
@! ( gofmt -s -l . | grep . )
ci-check: check-fmt check