-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 1.08 KB
/
Copy pathMakefile
File metadata and controls
34 lines (23 loc) · 1.08 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
.PHONY: install install-cpu client doctor run up up-gpu clean test test-cov
install: ## Auto-detect GPU and install everything
bash install.sh
install-cpu: ## Install for CPU-only
bash install.sh --cpu
client: ## Build Angular frontend
cd client && npm ci && npx ng build
doctor: ## Run diagnostic checks
python facet.py --doctor
run: ## Start the web viewer
python viewer.py
up: ## Start with Docker Compose (CPU, works anywhere)
docker compose up
up-gpu: ## Start with Docker Compose (NVIDIA GPU acceleration)
docker compose -f docker-compose.yml -f docker-compose.gpu.yml up
clean: ## Remove venv and build artifacts
rm -rf venv client/dist client/node_modules
test: ## Run Python test suite
python3 -m pytest
test-cov: ## Run tests with coverage report
python3 -m pytest --cov=api --cov=config --cov=storage --cov-report=term-missing
help: ## Show available targets
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-14s\033[0m %s\n", $$1, $$2}'