Make HTML5 work again

This commit is contained in:
3wc 2024-02-13 00:04:07 -03:00
parent 51d10f430f
commit 1d8222a395
5 changed files with 16 additions and 7 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
**/*.hl
/bin/*

View File

@ -1,8 +1,6 @@
-cp src
--macro Init.setup()
-lib heaps
-lib hlsdl
-lib hxyarn
-hl rewild.hl
-main Main
-lib domkit

5
compile-hl.hxml Normal file
View File

@ -0,0 +1,5 @@
compile-common.hxml
-D windowTitle=StoneInAGlasshouse
-lib hlsdl
-hl bin/rewild.hl

3
compile-js.hxml Normal file
View File

@ -0,0 +1,3 @@
compile-common.hxml
-js bin/rewild.js

View File

@ -1,12 +1,15 @@
.PHONY: watch
default: rewild.hl
default: bin/rewild.hl
rewild.hl: **/*.hx
haxe compile.hxml
bin/rewild.hl: **/*.hx
haxe compile-hl.hxml
bin/rewild.js: **/*.hx
haxe compile-js.hxml
clean:
rm rewild.hl
rm -f bin/rewild.hl bin/rewild.js
watch:
@inotifywait --recursive --monitor --event modify,move,create,delete --include '.*.hx$$' ./ | while read changed; do echo $$changed; make; done