.PHONY: compile check run test clean help

JAVAC ?= javac
JAVA ?= java

compile: Aip56.class

Aip56.class: Aip56.java
	$(JAVAC) Aip56.java

check: compile
	$(JAVA) Aip56 --check

run: compile
	$(JAVA) Aip56

test: check

clean:
	rm -f *.class

help:
	@printf '%s\n' \
		'make check  Compile and validate the canonical wordlist' \
		'make run    Compile and generate one AIP-56 phrase' \
		'make test   Run the validation smoke test' \
		'make clean  Remove Java class files' \
		'make help   Show these targets'
