-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (51 loc) · 1.39 KB
/
Makefile
File metadata and controls
62 lines (51 loc) · 1.39 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
57
58
59
60
61
62
.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 CLI tools (evrtools, showtints, texconv, symhash)"
@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 all CLI tools via go install"
@echo " fmt Format code"
@echo " lint Run go vet"
@echo " check Run fmt, lint, and test"
# Build the CLI tools
build:
go build -o bin/evrtools ./cmd/evrtools
go build -o bin/showtints ./cmd/showtints
go build -o bin/texconv ./cmd/texconv
go build -o bin/symhash ./cmd/symhash
# Run all tests
test:
go test -v ./...
# 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 all CLI tools
install:
go install ./cmd/evrtools
go install ./cmd/showtints
go install ./cmd/texconv
go install ./cmd/symhash
# Format code
fmt:
go fmt ./...
# Lint code
lint:
go vet ./...
# Check for common issues
check: fmt lint test