README and makefile improvements

This commit is contained in:
3wc 2024-02-14 12:32:45 -03:00
parent 021aac9914
commit dd9fc47787
2 changed files with 27 additions and 3 deletions

View File

@ -2,10 +2,31 @@
## Development ## Development
### Requirements
* `haxe`
* `haxelib`
* Haxelib dependencies; run `haxelib install compile-hl.hxml`
* `automake`
### Compiling ### Compiling
`haxe compile.hxml` `make debug`
You can alternatively run `make watch` to automatically rebuild on changes to
`.hx` files.
### Running ### Running
`hl rewild.hl` `make run`
### Making a release
**TODO**: Making a redistributable `hl` version
#### Web
```
make bin/rewild.js
abra app cp <domain> bin/rewild.js app:/usr/share/nginx/html/bin/
```

View File

@ -1,4 +1,4 @@
.PHONY: watch .PHONY: watch run
default: bin/rewild.hl default: bin/rewild.hl
@ -18,3 +18,6 @@ clean:
watch: watch:
@inotifywait --recursive --monitor --event modify,move,create,delete --include '.*.hx$$' ./ | while read changed; do echo $$changed; make debug; done @inotifywait --recursive --monitor --event modify,move,create,delete --include '.*.hx$$' ./ | while read changed; do echo $$changed; make debug; done
run:
hl bin/rewild.hl