mirror of
https://github.com/D-Modem/retrossl.git
synced 2026-11-28 12:38:06 -08:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRRH4kntyPfrY1bFWC3
24 lines
481 B
Makefile
24 lines
481 B
Makefile
GO ?= go
|
|
|
|
all: test
|
|
|
|
# gofmt, vet and the tests, as CI runs them
|
|
test:
|
|
@test -z "$$(gofmt -l .)" || { gofmt -l .; echo "gofmt: the files above need formatting"; exit 1; }
|
|
$(GO) vet ./...
|
|
$(GO) test -race ./...
|
|
|
|
# the tests' coverage, as cover.html
|
|
cover:
|
|
$(GO) test -coverprofile=cover.out ./...
|
|
$(GO) tool cover -html=cover.out -o cover.html
|
|
@$(GO) tool cover -func=cover.out | tail -1
|
|
|
|
fmt:
|
|
gofmt -w .
|
|
|
|
clean:
|
|
rm -f cover.out cover.html
|
|
|
|
.PHONY: all test cover fmt clean
|