forked from ruvnet/RuView
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
123 lines (99 loc) · 4.6 KB
/
Makefile
File metadata and controls
123 lines (99 loc) · 4.6 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# WiFi-DensePose Makefile
# ============================================================
.PHONY: verify verify-verbose verify-audit install install-verify install-python \
install-rust install-browser install-docker install-field install-full \
check build-rust build-wasm test-rust bench run-api run-viz clean help
# ─── Installation ────────────────────────────────────────────
# Guided interactive installer
install:
@./install.sh
# Profile-specific installs (non-interactive)
install-verify:
@./install.sh --profile verify --yes
install-python:
@./install.sh --profile python --yes
install-rust:
@./install.sh --profile rust --yes
install-browser:
@./install.sh --profile browser --yes
install-docker:
@./install.sh --profile docker --yes
install-field:
@./install.sh --profile field --yes
install-full:
@./install.sh --profile full --yes
# Hardware and environment check only (no install)
check:
@./install.sh --check-only
# ─── Verification ────────────────────────────────────────────
# Trust Kill Switch -- one-command proof replay
verify:
@./verify
# Verbose mode -- show detailed feature statistics and Doppler spectrum
verify-verbose:
@./verify --verbose
# Full audit -- verify pipeline + scan codebase for mock/random patterns
verify-audit:
@./verify --verbose --audit
# ─── Rust Builds ─────────────────────────────────────────────
build-rust:
cd rust-port/wifi-densepose-rs && cargo build --release
build-wasm:
cd rust-port/wifi-densepose-rs && wasm-pack build crates/wifi-densepose-wasm --target web --release
build-wasm-mat:
cd rust-port/wifi-densepose-rs && wasm-pack build crates/wifi-densepose-wasm --target web --release -- --features mat
test-rust:
cd rust-port/wifi-densepose-rs && cargo test --workspace
bench:
cd rust-port/wifi-densepose-rs && cargo bench --package wifi-densepose-signal
# ─── Run ─────────────────────────────────────────────────────
run-api:
uvicorn v1.src.api.main:app --host 0.0.0.0 --port 8000
run-api-dev:
uvicorn v1.src.api.main:app --host 0.0.0.0 --port 8000 --reload
run-viz:
python3 -m http.server 3000 --directory ui
run-docker:
docker compose up
# ─── Clean ───────────────────────────────────────────────────
clean:
rm -f .install.log
cd rust-port/wifi-densepose-rs && cargo clean 2>/dev/null || true
# ─── Help ────────────────────────────────────────────────────
help:
@echo "WiFi-DensePose Build Targets"
@echo "============================================================"
@echo ""
@echo " Installation:"
@echo " make install Interactive guided installer"
@echo " make install-verify Verification only (~5 MB)"
@echo " make install-python Full Python pipeline (~500 MB)"
@echo " make install-rust Rust pipeline with ~810x speedup"
@echo " make install-browser WASM for browser (~10 MB)"
@echo " make install-docker Docker-based deployment"
@echo " make install-field WiFi-Mat disaster kit (~62 MB)"
@echo " make install-full Everything available"
@echo " make check Hardware/environment check only"
@echo ""
@echo " Verification:"
@echo " make verify Run the trust kill switch"
@echo " make verify-verbose Verbose with feature details"
@echo " make verify-audit Full verification + codebase audit"
@echo ""
@echo " Build:"
@echo " make build-rust Build Rust workspace (release)"
@echo " make build-wasm Build WASM package (browser)"
@echo " make build-wasm-mat Build WASM with WiFi-Mat (field)"
@echo " make test-rust Run all Rust tests"
@echo " make bench Run signal processing benchmarks"
@echo ""
@echo " Run:"
@echo " make run-api Start Python API server"
@echo " make run-api-dev Start API with hot-reload"
@echo " make run-viz Serve 3D visualization (port 3000)"
@echo " make run-docker Start Docker dev stack"
@echo ""
@echo " Utility:"
@echo " make clean Remove build artifacts"
@echo " make help Show this help"
@echo ""