diff --git a/.gitignore b/.gitignore index d53c698..5b450d4 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -**/*.hl +/bin/* diff --git a/compile.hxml b/compile-common.hxml similarity index 75% rename from compile.hxml rename to compile-common.hxml index 3481b3c..1268fc3 100644 --- a/compile.hxml +++ b/compile-common.hxml @@ -1,8 +1,6 @@ -cp src --macro Init.setup() -lib heaps --lib hlsdl -lib hxyarn --hl rewild.hl -main Main -lib domkit diff --git a/compile-hl.hxml b/compile-hl.hxml new file mode 100644 index 0000000..5b3982b --- /dev/null +++ b/compile-hl.hxml @@ -0,0 +1,5 @@ +compile-common.hxml + +-D windowTitle=StoneInAGlasshouse +-lib hlsdl +-hl bin/rewild.hl diff --git a/compile-js.hxml b/compile-js.hxml new file mode 100644 index 0000000..42baf65 --- /dev/null +++ b/compile-js.hxml @@ -0,0 +1,3 @@ +compile-common.hxml + +-js bin/rewild.js diff --git a/makefile b/makefile index fc16964..3161a89 100644 --- a/makefile +++ b/makefile @@ -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