README and makefile improvements
This commit is contained in:
parent
021aac9914
commit
dd9fc47787
25
README.md
25
README.md
@ -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/
|
||||||
|
```
|
||||||
|
5
makefile
5
makefile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user