blob: a8b99ff516b04d0c4c7406454d9b6ae921dd2653 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
.PHONY: build test lint clean run
BINARY := claudomator
BUILD_DIR := bin
GO := go
build:
$(GO) build -o $(BUILD_DIR)/$(BINARY) ./cmd/claudomator
test:
$(GO) test ./... -v -race -count=1
test-cover:
$(GO) test ./... -coverprofile=coverage.out -race
$(GO) tool cover -html=coverage.out -o coverage.html
lint:
golangci-lint run ./...
clean:
rm -rf $(BUILD_DIR) coverage.out coverage.html
run: build
./$(BUILD_DIR)/$(BINARY)
tidy:
$(GO) mod tidy
|