2021-07-28 20:21:14 +00:00
|
|
|
info:
|
|
|
|
@echo available targets:
|
|
|
|
@perl -ne 'm/^([a-zA-Z0-9\-]+):/ && print(" $$1\n");' Makefile
|
|
|
|
|
|
|
|
build:
|
2021-07-31 20:42:35 +00:00
|
|
|
cd src/ && go build -o ../knyt knyt.go
|
2021-07-28 20:21:14 +00:00
|
|
|
|
|
|
|
run:
|
2021-07-31 20:42:35 +00:00
|
|
|
cd src/ && go run knyt.go
|
2021-07-28 20:21:14 +00:00
|
|
|
|
|
|
|
run-loop:
|
|
|
|
pexec -R -c -e TARGET \
|
|
|
|
-r _run-endless-loop \
|
|
|
|
-r _run-inotify-restart \
|
|
|
|
-- $(MAKE) '$$TARGET'
|
|
|
|
|
|
|
|
run-standalone:
|
2021-07-31 20:42:35 +00:00
|
|
|
cd src/ && ../knyt
|
2021-07-28 20:21:14 +00:00
|
|
|
|
|
|
|
_run-endless-loop:
|
|
|
|
while true; do $(MAKE) run || sleep 3; done
|
|
|
|
|
|
|
|
_run-inotify-restart:
|
|
|
|
inotifyloop . curl -s http://localhost:32039/__intern__/exit
|