From dd9fc47787e2830851cd8bf45a06179f05a58f2d Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Wed, 14 Feb 2024 12:32:45 -0300 Subject: [PATCH] README and makefile improvements --- README.md | 25 +++++++++++++++++++++++-- makefile | 5 ++++- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c4fd19c..853df27 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,31 @@ ## Development +### Requirements + +* `haxe` +* `haxelib` +* Haxelib dependencies; run `haxelib install compile-hl.hxml` +* `automake` + ### Compiling -`haxe compile.hxml` +`make debug` + +You can alternatively run `make watch` to automatically rebuild on changes to +`.hx` files. ### Running -`hl rewild.hl` +`make run` + +### Making a release + +**TODO**: Making a redistributable `hl` version + +#### Web + +``` +make bin/rewild.js +abra app cp bin/rewild.js app:/usr/share/nginx/html/bin/ +``` diff --git a/makefile b/makefile index a22de16..fc0e07f 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,4 @@ -.PHONY: watch +.PHONY: watch run default: bin/rewild.hl @@ -18,3 +18,6 @@ clean: watch: @inotifywait --recursive --monitor --event modify,move,create,delete --include '.*.hx$$' ./ | while read changed; do echo $$changed; make debug; done + +run: + hl bin/rewild.hl