Add 'make watch' (#12636)

* Add 'make watch'

This combines frontend and backend watch into a single command that runs
them in parallel on on SIGINT terminates both.

Termination is not super-clean but I guess it does not have to.

* move to tools/, trap more signals, remove gnu-specific flag

* simplify

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
silverwind
2020-09-05 02:55:06 +02:00
committed by GitHub
parent 9859b09afa
commit dcbc3ef579

View File

@@ -94,14 +94,10 @@ See `make help` for all available `make` targets. Also see [`.drone.yml`](https:
## Building continuously ## Building continuously
Both the `frontend` and `backend` targets can be ran continuously when source files change: To run and continously rebuild when source files change:
````bash ````bash
# in your first terminal make watch
make watch-backend
# in your second terminal
make watch-frontend
```` ````
On macOS, watching all backend source files may hit the default open files limit which can be increased via `ulimit -n 12288` for the current shell or in your shell startup file for all future shells. On macOS, watching all backend source files may hit the default open files limit which can be increased via `ulimit -n 12288` for the current shell or in your shell startup file for all future shells.