glasshouse/makefile

24 lines
486 B
Makefile
Raw Permalink Normal View History

2024-02-14 15:32:45 +00:00
.PHONY: watch run
2024-02-11 01:40:40 +00:00
2024-02-22 17:39:58 +00:00
default: bin/glasshouse.hl
2024-02-12 19:47:53 +00:00
SOURCES := $(shell find . -name \*.hx -print)
2024-02-22 17:39:58 +00:00
bin/glasshouse.hl: $(SOURCES)
2024-02-13 03:04:07 +00:00
haxe compile-hl.hxml
2024-02-22 17:39:58 +00:00
bin/glasshouse.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-22 17:39:58 +00:00
rm -f bin/glasshouse.hl bin/glasshouse.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
2024-02-14 15:32:45 +00:00
run:
2024-02-22 17:39:58 +00:00
hl bin/glasshouse.hl