-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (45 loc) · 1.17 KB
/
Makefile
File metadata and controls
56 lines (45 loc) · 1.17 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.PHONY: help build test bench clean install fmt lint check
# Default target - show help
.DEFAULT_GOAL := help
# Show available targets
help:
@echo "evrFileTools - EVR package/manifest tool"
@echo ""
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@echo " build Build the CLI tool to bin/evrtools"
@echo " test Run all tests"
@echo " bench Run benchmarks"
@echo " bench-compare Run benchmarks with multiple iterations"
@echo " clean Remove build artifacts"
@echo " install Install CLI tool via go install"
@echo " fmt Format code"
@echo " lint Run go vet"
@echo " check Run fmt, lint, and test"
# Build the CLI tool
build:
go build -o bin/evrtools ./cmd/evrtools
# Run all tests
test:
go test -v ./pkg/...
# Run benchmarks
bench:
go test -bench=. -benchmem -benchtime=1s ./pkg/...
# Run benchmarks with comparison
bench-compare:
go test -bench=. -benchmem -count=5 ./pkg/...
# Clean build artifacts
clean:
rm -rf bin/
# Install the CLI tool
install:
go install ./cmd/evrtools
# Format code
fmt:
go fmt ./...
# Lint code
lint:
go vet ./...
# Check for common issues
check: fmt lint test