.PHONY: watch

default: rewild.hl

rewild.hl: **/*.hx
	haxe compile.hxml

clean:
	rm rewild.hl

watch:
	@inotifywait --recursive --monitor --event modify,move,create,delete --include '.*.hx$$' ./ | while read changed; do echo $$changed; make; done