diff --git a/makefile b/makefile index 3161a89..44246a6 100644 --- a/makefile +++ b/makefile @@ -2,10 +2,12 @@ default: bin/rewild.hl -bin/rewild.hl: **/*.hx +SOURCES := $(shell find . -name \*.hx -print) + +bin/rewild.hl: $(SOURCES) haxe compile-hl.hxml -bin/rewild.js: **/*.hx +bin/rewild.js: $(SOURCES) haxe compile-js.hxml clean: