-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
72 lines (59 loc) · 2 KB
/
Copy pathMakefile
File metadata and controls
72 lines (59 loc) · 2 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
63
64
65
66
67
68
69
70
71
72
GENERATION_TARGETS ?= all
.PHONY: all test generate check-generated lint conform bench size profile licenses dist clean
# The locale runtime and its C tests.
all:
$(MAKE) -C locale all
test:
$(MAKE) -C locale test
# The Vego IR and the generated engines, rendered by vegoc into tmp/ and installed in one transaction.
generate:
cd dev && go run ./cmd/generate -target $(GENERATION_TARGETS)
check-generated:
cd dev && go run ./cmd/generate -check -target $(GENERATION_TARGETS)
lint:
cd go && golangci-lint run ./...
cd vego && golangci-lint run ./...
cd dev && golangci-lint run ./...
cd rust && cargo clippy --workspace --all-targets
cd ts && npx --no-install tsc --noEmit -p tsconfig.json
# CONFORM_FLAGS passes options through, for example CONFORM_FLAGS="-backend ../native/cpp -lean".
conform:
cd dev && go run ./cmd/conform $(CONFORM_FLAGS)
# Cross-language benchmarks; BENCH_FLAGS passes options through, for example BENCH_FLAGS="-reference -only hard/".
bench:
mkdir -p tmp
cd dev && go run ./cmd/bench -build -tsv ../tmp/bench-results.tsv $(BENCH_FLAGS)
size:
cd dev && go run ./cmd/bench size
# CPU and allocation profiles of the Go engine over the shared cases, in tmp/.
profile:
mkdir -p tmp
cd dev && go test ./internal/protocol -run '^$$' -bench 'BenchmarkEngine' -benchmem \
-cpuprofile ../tmp/cpu.pprof -memprofile ../tmp/mem.pprof -o ../tmp/revera.test
cd dev && go tool pprof -top -nodecount 25 ../tmp/revera.test ../tmp/cpu.pprof
# Copies of LICENSE and LICENSES/ in every package directory.
licenses:
sh dev/sync-licenses.sh
# The release archives, the IR files and their manifest, in tmp/dist/, built from the recorded commit.
dist:
cd dev && go run ./cmd/dist
clean:
$(MAKE) -C locale clean
$(MAKE) -C native/c clean
$(MAKE) -C native/cpp clean
$(MAKE) -C ts clean
rm -rf \
build \
dev/tmp \
go/tmp \
lean/.lake \
native/build \
rust/fuzz/coverage \
rust/fuzz/target \
rust/target \
tmp \
ts/tmp \
zig/.zig-cache \
zig/tools/.zig-cache \
zig/zig-out \
zig/tmp