-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (30 loc) · 878 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (30 loc) · 878 Bytes
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
.PHONY: build test clean clean-examples help
# Default target
help:
@echo "Peak - Generics for Salesforce Apex"
@echo ""
@echo "Available targets:"
@echo " make build - Build the peak binary"
@echo " make test - Run all tests"
@echo " make clean - Remove build artifacts"
@echo " make clean-examples - Remove generated .cls files from examples/"
# Build the peak binary
build:
go build -o peak ./cmd/peak
# Run tests with coverage
test:
go test ./... -v -cover
# Run tests with detailed coverage
coverage:
go test ./... -coverprofile=coverage.out
go tool cover -html=coverage.out
# Clean build artifacts
clean:
rm -f peak
rm -f coverage.out
rm -f *.coverprofile
# Clean generated .cls files from examples directory
clean-examples:
@echo "Removing generated .cls files from examples/..."
@rm -f examples/*.cls
@echo "Done."