concile/Makefile
2026-05-22 11:45:51 +01:00

18 lines
372 B
Makefile

SOURCE := $(shell find src -type f -name "*.go")
all: clean test lint build
test: $(SOURCE)
cd src && go test -v
lint: $(SOURCE)
cd src && go vet
build: $(SOURCE) test lint
cd src && CGO_ENABLED=0 go build -v -ldflags="-w -s" -o ../concile
clean:
rm -f concile
coverage:
cd src && go test -coverprofile=../coverage.out -v && go tool cover -html=../coverage.out