|
| 1 | +# WiFi-DensePose Makefile |
| 2 | +# ============================================================ |
| 3 | + |
| 4 | +.PHONY: verify verify-verbose verify-audit install install-verify install-python \ |
| 5 | + install-rust install-browser install-docker install-field install-full \ |
| 6 | + check build-rust build-wasm test-rust bench run-api run-viz clean help |
| 7 | + |
| 8 | +# ─── Installation ──────────────────────────────────────────── |
| 9 | +# Guided interactive installer |
| 10 | +install: |
| 11 | + @./install.sh |
| 12 | + |
| 13 | +# Profile-specific installs (non-interactive) |
| 14 | +install-verify: |
| 15 | + @./install.sh --profile verify --yes |
| 16 | + |
| 17 | +install-python: |
| 18 | + @./install.sh --profile python --yes |
| 19 | + |
| 20 | +install-rust: |
| 21 | + @./install.sh --profile rust --yes |
| 22 | + |
| 23 | +install-browser: |
| 24 | + @./install.sh --profile browser --yes |
| 25 | + |
| 26 | +install-docker: |
| 27 | + @./install.sh --profile docker --yes |
| 28 | + |
| 29 | +install-field: |
| 30 | + @./install.sh --profile field --yes |
| 31 | + |
| 32 | +install-full: |
| 33 | + @./install.sh --profile full --yes |
| 34 | + |
| 35 | +# Hardware and environment check only (no install) |
| 36 | +check: |
| 37 | + @./install.sh --check-only |
| 38 | + |
| 39 | +# ─── Verification ──────────────────────────────────────────── |
| 40 | +# Trust Kill Switch -- one-command proof replay |
| 41 | +verify: |
| 42 | + @./verify |
| 43 | + |
| 44 | +# Verbose mode -- show detailed feature statistics and Doppler spectrum |
| 45 | +verify-verbose: |
| 46 | + @./verify --verbose |
| 47 | + |
| 48 | +# Full audit -- verify pipeline + scan codebase for mock/random patterns |
| 49 | +verify-audit: |
| 50 | + @./verify --verbose --audit |
| 51 | + |
| 52 | +# ─── Rust Builds ───────────────────────────────────────────── |
| 53 | +build-rust: |
| 54 | + cd rust-port/wifi-densepose-rs && cargo build --release |
| 55 | + |
| 56 | +build-wasm: |
| 57 | + cd rust-port/wifi-densepose-rs && wasm-pack build crates/wifi-densepose-wasm --target web --release |
| 58 | + |
| 59 | +build-wasm-mat: |
| 60 | + cd rust-port/wifi-densepose-rs && wasm-pack build crates/wifi-densepose-wasm --target web --release -- --features mat |
| 61 | + |
| 62 | +test-rust: |
| 63 | + cd rust-port/wifi-densepose-rs && cargo test --workspace |
| 64 | + |
| 65 | +bench: |
| 66 | + cd rust-port/wifi-densepose-rs && cargo bench --package wifi-densepose-signal |
| 67 | + |
| 68 | +# ─── Run ───────────────────────────────────────────────────── |
| 69 | +run-api: |
| 70 | + uvicorn v1.src.api.main:app --host 0.0.0.0 --port 8000 |
| 71 | + |
| 72 | +run-api-dev: |
| 73 | + uvicorn v1.src.api.main:app --host 0.0.0.0 --port 8000 --reload |
| 74 | + |
| 75 | +run-viz: |
| 76 | + python3 -m http.server 3000 --directory ui |
| 77 | + |
| 78 | +run-docker: |
| 79 | + docker compose up |
| 80 | + |
| 81 | +# ─── Clean ─────────────────────────────────────────────────── |
| 82 | +clean: |
| 83 | + rm -f .install.log |
| 84 | + cd rust-port/wifi-densepose-rs && cargo clean 2>/dev/null || true |
| 85 | + |
| 86 | +# ─── Help ──────────────────────────────────────────────────── |
| 87 | +help: |
| 88 | + @echo "WiFi-DensePose Build Targets" |
| 89 | + @echo "============================================================" |
| 90 | + @echo "" |
| 91 | + @echo " Installation:" |
| 92 | + @echo " make install Interactive guided installer" |
| 93 | + @echo " make install-verify Verification only (~5 MB)" |
| 94 | + @echo " make install-python Full Python pipeline (~500 MB)" |
| 95 | + @echo " make install-rust Rust pipeline with ~810x speedup" |
| 96 | + @echo " make install-browser WASM for browser (~10 MB)" |
| 97 | + @echo " make install-docker Docker-based deployment" |
| 98 | + @echo " make install-field WiFi-Mat disaster kit (~62 MB)" |
| 99 | + @echo " make install-full Everything available" |
| 100 | + @echo " make check Hardware/environment check only" |
| 101 | + @echo "" |
| 102 | + @echo " Verification:" |
| 103 | + @echo " make verify Run the trust kill switch" |
| 104 | + @echo " make verify-verbose Verbose with feature details" |
| 105 | + @echo " make verify-audit Full verification + codebase audit" |
| 106 | + @echo "" |
| 107 | + @echo " Build:" |
| 108 | + @echo " make build-rust Build Rust workspace (release)" |
| 109 | + @echo " make build-wasm Build WASM package (browser)" |
| 110 | + @echo " make build-wasm-mat Build WASM with WiFi-Mat (field)" |
| 111 | + @echo " make test-rust Run all Rust tests" |
| 112 | + @echo " make bench Run signal processing benchmarks" |
| 113 | + @echo "" |
| 114 | + @echo " Run:" |
| 115 | + @echo " make run-api Start Python API server" |
| 116 | + @echo " make run-api-dev Start API with hot-reload" |
| 117 | + @echo " make run-viz Serve 3D visualization (port 3000)" |
| 118 | + @echo " make run-docker Start Docker dev stack" |
| 119 | + @echo "" |
| 120 | + @echo " Utility:" |
| 121 | + @echo " make clean Remove build artifacts" |
| 122 | + @echo " make help Show this help" |
| 123 | + @echo "" |
0 commit comments