glasshouse/makefile

21 lines
434 B
Makefile
Raw Normal View History

2024-02-11 01:40:40 +00:00
.PHONY: watch
2024-02-13 03:04:07 +00:00
default: bin/rewild.hl
2024-02-12 19:47:53 +00:00
SOURCES := $(shell find . -name \*.hx -print)
bin/rewild.hl: $(SOURCES)
2024-02-13 03:04:07 +00:00
haxe compile-hl.hxml
bin/rewild.js: $(SOURCES)
2024-02-13 03:04:07 +00:00
haxe compile-js.hxml
2024-02-11 01:40:40 +00:00
2024-02-14 03:21:23 +00:00
debug: $(SOURCES)
haxe --debug compile-hl.hxml
2024-02-12 19:47:53 +00:00
clean:
2024-02-13 03:04:07 +00:00
rm -f bin/rewild.hl bin/rewild.js
2024-02-12 19:47:53 +00:00
2024-02-11 01:40:40 +00:00
watch:
2024-02-14 03:21:23 +00:00
@inotifywait --recursive --monitor --event modify,move,create,delete --include '.*.hx$$' ./ | while read changed; do echo $$changed; make debug; done