-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 1.06 KB
/
Makefile
File metadata and controls
38 lines (27 loc) · 1.06 KB
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
28
29
30
31
32
33
34
35
36
37
38
.PHONY: build run clean test lint install coverage generate check release help
build: ## Build binary to ./bin/contextception
go build -o bin/contextception ./cmd/contextception
run: build ## Build and run
./bin/contextception
clean: ## Remove build artifacts
rm -rf bin/ coverage.out coverage.html
test: ## Run all tests
go test ./...
lint: ## Run golangci-lint
golangci-lint run ./...
install: ## Install to $GOPATH/bin
go install ./cmd/contextception
coverage: ## Run tests with coverage and open HTML report
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
@echo "Coverage report: coverage.html"
generate: ## Regenerate protocol JSON schemas
go run ./cmd/gen-schema
release: ## Show release info (use /release in Claude Code for full release)
go run ./cmd/release info
check: ## Run vet, lint, and tests
go vet ./...
golangci-lint run ./...
go test ./...
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'