.PHONY: reproduce test verify clean help

help:
	@echo "make reproduce  - regenerate the ledger from data/raw/ and replay every published figure"
	@echo "make test       - run the reproduction test suite (stdlib unittest)"
	@echo "make verify      - checksum the immutable scrape only, no parsing"
	@echo "make clean       - remove .staging/ and __pycache__"

reproduce:
	python3 pipeline/reproduce.py

test:
	python3 -m unittest discover -s tests -v

verify:
	python3 -c "import sys; sys.path.insert(0,'pipeline'); import analysis; \
	[print(('ok   ' if c['ok'] else 'FAIL '), c['file']) for c in analysis.verify_raw_checksums()]"

clean:
	rm -rf .staging
	find . -name __pycache__ -type d -exec rm -rf {} +
