.PHONY: install test test-one clean scan run status start

install:
	python3.10 -m venv venv
	venv/bin/pip install -e ".[dev]"

test:
	venv/bin/pytest tests/ -q

test-one:
	venv/bin/pytest $(FILE) -v

clean:
	rm -rf data/tasks.db __pycache__ src/rockchip_agents.egg-info
	find . -name "*.pyc" -delete
	find . -name "__pycache__" -type d -exec rm -rf {} + 2>/dev/null || true

scan:
	venv/bin/python scripts/run.py scan

run:
	venv/bin/python scripts/run.py run

status:
	venv/bin/python scripts/run.py status

start:
	venv/bin/python scripts/run.py start
