-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 992 Bytes
/
Makefile
File metadata and controls
43 lines (33 loc) · 992 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
37
38
39
40
41
42
43
.PHONY: build clean test test-race test-cubical coverage lint check kernel-selftest help
build:
go build -o bin/hg ./cmd/hg
clean:
rm -rf bin/ coverage.out coverage.html
test:
go test ./...
test-race:
go test -race ./...
test-cubical:
go test -tags cubical ./...
coverage:
go test -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
lint:
golangci-lint run
check:
go fmt ./...
go vet ./...
go test ./...
kernel-selftest:
go run ./cmd/hg check --selftest
help:
@echo "Available targets:"
@echo " build - Build the hg binary"
@echo " clean - Remove build artifacts"
@echo " test - Run tests"
@echo " test-race - Run tests with race detection"
@echo " test-cubical - Run cubical feature tests"
@echo " coverage - Generate coverage report"
@echo " lint - Run golangci-lint"
@echo " check - Run fmt, vet, and tests"
@echo " kernel-selftest - Run kernel self-tests"