PYTHON ?= python3 VENV := .venv .PHONY: all venv examples test clean all: examples test venv: $(PYTHON) -m venv $(VENV) $(VENV)/bin/pip install -r requirements.txt @echo "Now run: PYTHON=$(VENV)/bin/python make all" examples: $(PYTHON) examples/issue_certificate.py $(PYTHON) examples/verify_output_provenance.py $(PYTHON) examples/revoke_three_rungs.py $(PYTHON) examples/crypto_erasure_undecryptable.py test: $(PYTHON) -m pytest tests/ -q clean: rm -rf $(VENV) .pytest_cache find . -type d -name __pycache__ -exec rm -rf {} +