PYTHON ?= python3
PAPER = paper/LastZ_Librarian_RAG_Empirical_Pilot

.PHONY: all analysis figures validate adjudication paper manifest clean

all: analysis figures validate paper manifest

analysis:
	$(PYTHON) scripts/analyze_run1.py

figures:
	$(PYTHON) scripts/build_figures.py

validate:
	$(PYTHON) scripts/validate_bundle.py --require-restricted

adjudication:
	$(PYTHON) scripts/create_adjudication_package.py

paper:
	cd paper && latexmk -pdf -interaction=nonstopmode -halt-on-error LastZ_Librarian_RAG_Empirical_Pilot.tex

manifest:
	$(PYTHON) scripts/hash_manifest.py create
	$(PYTHON) scripts/hash_manifest.py check

clean:
	cd paper && latexmk -C LastZ_Librarian_RAG_Empirical_Pilot.tex
