# Simple helpers
PY ?= python
HOST ?= 0.0.0.0
PORT ?= 5050
TOKEN ?= changeme
DATA ?=

.PHONY: install dev run test seed clean

install:
	$(PY) -m pip install -U pip
	$(PY) -m pip install -e . -r requirements-dev.txt

dev:
	$(PY) -m pip install -r requirements-dev.txt

run:
	$(PY) -m encounterflow.cli --host $(HOST) --port $(PORT) --token $(TOKEN) $(if $(DATA),--data-dir $(DATA),)

test:
	pytest -q

seed:
	curl -s -X POST "http://$(HOST):$(PORT)/admin/seed_icons?token=$(TOKEN)" >/dev/null || true

clean:
	rm -rf .pytest_cache .coverage build dist *.egg-info
