glasshouse/makefile
2024-02-22 14:41:52 -03:00

24 lines
486 B
Makefile

.PHONY: watch run
default: bin/glasshouse.hl
SOURCES := $(shell find . -name \*.hx -print)
bin/glasshouse.hl: $(SOURCES)
haxe compile-hl.hxml
bin/glasshouse.js: $(SOURCES)
haxe compile-js.hxml
debug: $(SOURCES)
haxe --debug compile-hl.hxml
clean:
rm -f bin/glasshouse.hl bin/glasshouse.js
watch:
@inotifywait --recursive --monitor --event modify,move,create,delete --include '.*.hx$$' ./ | while read changed; do echo $$changed; make debug; done
run:
hl bin/glasshouse.hl