.PHONY: check run test clean help

LUA ?= lua

check:
	$(LUA) -e 'assert(loadfile("aip56.lua"))'
	$(LUA) aip56.lua --check

run:
	$(LUA) aip56.lua

test: check

clean:
	rm -f .aip56-test.tmp

help:
	@printf '%s\n' \
		'make check  Syntax-check Lua and validate the embedded compressed payload' \
		'make run    Generate one AIP-56 phrase' \
		'make test   Run the validation smoke test' \
		'make clean  Remove temporary local artifacts' \
		'make help   Show these targets'
