1
0
notation/Makefile

30 lines
444 B
Makefile
Raw Normal View History

2025-10-31 20:29:29 +01:00
sources = $(shell find . -name "*.go")
2020-10-20 02:43:52 +02:00
default: build
build:
2020-11-26 16:02:43 +01:00
@go build ./...
2020-10-20 02:43:52 +02:00
check:
2020-11-26 16:02:43 +01:00
@go test -count 1 ./...
2020-10-20 02:43:52 +02:00
imports:
2025-10-31 20:29:29 +01:00
@goimports -w $(sources)
2020-10-20 02:43:52 +02:00
fmt:
2025-10-31 20:29:29 +01:00
@gofmt -w -s $(sources)
2020-10-20 02:43:52 +02:00
2025-10-31 20:29:29 +01:00
.coverprofile: $(sources)
2020-11-26 16:02:43 +01:00
@go test -count 1 -coverprofile .coverprofile
2020-10-20 02:43:52 +02:00
cover: .coverprofile
2020-11-26 16:02:43 +01:00
@go tool cover -func .coverprofile
2020-10-20 02:43:52 +02:00
showcover: .coverprofile
2020-11-26 16:02:43 +01:00
@go tool cover -html .coverprofile
check-fmt:
@! ( gofmt -s -l . | grep . )
2020-11-26 16:04:24 +01:00
ci-check: check-fmt check