-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
94 lines (74 loc) · 2.32 KB
/
Copy pathMakefile
File metadata and controls
94 lines (74 loc) · 2.32 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# forge Makefile
# Convenience wrapper for common development tasks
.PHONY: help build run test check fmt clippy privacy security verify package support-bundle clean install dev watch benchmark debug
help:
@echo "forge Development Commands"
@echo "==========================="
@echo ""
@echo "Build Commands:"
@echo " make build - Build release version"
@echo " make run - Run in development mode"
@echo " make install - Install to ~/.local/bin"
@echo " make package - Build a relocatable release archive and checksum"
@echo ""
@echo "Quality Commands:"
@echo " make test - Run all tests"
@echo " make check - Check code without building"
@echo " make fmt - Format code"
@echo " make clippy - Lint code"
@echo " make privacy - Scan tracked text for known personal identifiers"
@echo " make security - Audit dependencies and shell scripts"
@echo " make verify - Run the core build, test, syntax, and privacy gate"
@echo ""
@echo "Development:"
@echo " make dev - Run dev script"
@echo " make watch - Watch for changes and rebuild"
@echo " make benchmark - Run performance benchmarks"
@echo " make debug - Show debug information"
@echo " make support-bundle - Create a privacy-preserving support archive"
@echo ""
@echo "Cleanup:"
@echo " make clean - Clean build artifacts"
@echo ""
build:
@./scripts/dev.sh build
run:
@./scripts/dev.sh run
test:
@./scripts/dev.sh test
check:
@./scripts/dev.sh check
fmt:
@./scripts/dev.sh fmt
clippy:
@./scripts/dev.sh clippy
privacy:
@./scripts/privacy-check.sh
security:
@./scripts/security-check.sh
verify: privacy
@cargo fmt --all -- --check
@cargo test --all-features --locked
@cargo clippy --all-targets --all-features --locked -- -D warnings
@RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features --locked
@cargo build --release --all-features --locked
@bash -n scripts/*.sh packaging/*.sh
package:
@cargo build --release --all-features --locked
@./scripts/package-release.sh target/release/forge
support-bundle:
@./scripts/support-bundle.sh
clean:
@./scripts/dev.sh clean
install:
@./scripts/install.sh
dev:
@./scripts/dev.sh
watch:
@./scripts/dev.sh watch
benchmark:
@./scripts/benchmark.sh
debug:
@./scripts/debug.sh info
# Default target
.DEFAULT_GOAL := help