-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (51 loc) · 1.56 KB
/
Makefile
File metadata and controls
67 lines (51 loc) · 1.56 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
.PHONY: help dev build test lint clean install deps docker
# Default target
help:
@echo "Spec-to-Proof development commands (Cargo + npm; see CONTRIBUTING.md)"
@echo "================================================================"
@echo "make build - cargo build --workspace"
@echo "make test - cargo test --workspace && npm test"
@echo "make lint - ./scripts/ci-lint.sh"
@echo "make clean - cargo clean; remove node/.next artifacts"
@echo "make install - npm ci"
@echo "make docker - docker build lean-farm image"
dev:
@echo "Start components you need, for example:"
@echo " cargo run -p nlp --bin invariant_extractor"
@echo " cargo run -p proof --bin lean_compiler"
@echo " npm run dev # Next.js (platform/ui)"
build:
cargo build --workspace
test:
cargo test --workspace
npm test
lint:
./scripts/ci-lint.sh
clean:
cargo clean
rm -rf node_modules .next platform/ui/.next
@echo "Clean completed"
install:
npm ci
deps:
npm update
docker:
docker build -f lean-farm/Dockerfile -t spec-to-proof/lean-farm:local lean-farm
format:
npm run format 2>/dev/null || true
cargo fmt --all
type-check:
npm run type-check
security:
cargo audit
npm audit
bench:
@echo "Benchmarks are not wired in this Makefile; see crate-specific benches."
docs:
@echo "See README.md and docs/adr/"
status:
@echo "Rust: $$(rustc --version 2>/dev/null || echo not installed)"
@echo "Node: $$(node --version 2>/dev/null || echo not installed)"
@echo "Branch: $$(git branch --show-current 2>/dev/null || echo unknown)"
smoke-qa:
./scripts/smoke-qa.sh