-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (38 loc) · 1.15 KB
/
Makefile
File metadata and controls
50 lines (38 loc) · 1.15 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
.PHONY: all build run test clean check-env mock-build mock-test benchmark
# Project Moonlight: The Mechanic's Ear Build System
# "Speed is Safety."
PYTHON := python3
all: setup build
# Dependency Setup
setup:
@echo "--- [SETUP] Installing Dependencies ---"
$(PYTHON) -m pip install -r requirements.txt || echo "Warning: Pip install failed. Ensure 'rich' is installed."
# Standard Build (Delegates to Python Orchestrator)
build:
$(PYTHON) bridge-python/moonlight.py build
# Mock Build (Forces Mock Kernel)
mock-build:
$(PYTHON) bridge-python/moonlight.py build --mock
# Run the Bridge
run:
$(PYTHON) bridge-python/moonlight.py run
# Run Tests
test:
$(PYTHON) bridge-python/moonlight.py test
# Kinetic Dashboard
monitor:
$(PYTHON) bridge-python/moonlight.py monitor
# Benchmark Performance
benchmark:
$(PYTHON) bridge-python/moonlight.py benchmark
# Aliases for compatibility
mock-test: test
clean:
@echo "--- [CLEAN] Purging Artifacts ---"
cd core && moon clean || true
cd bridge-rust && cargo clean || true
cd core/mock_kernel && cargo clean || true
rm -rf core/target
rm -rf __pycache__
rm -rf bridge-python/__pycache__
rm -rf tests/__pycache__