25 lines
433 B
Makefile
25 lines
433 B
Makefile
|
info:
|
||
|
@echo available targets:
|
||
|
@perl -ne 'm/^([a-zA-Z0-9\-]+):/ && print(" $$1\n");' Makefile
|
||
|
|
||
|
build:
|
||
|
go build knyc.go
|
||
|
|
||
|
run:
|
||
|
go run knyc.go
|
||
|
|
||
|
run-loop:
|
||
|
pexec -R -c -e TARGET \
|
||
|
-r _run-endless-loop \
|
||
|
-r _run-inotify-restart \
|
||
|
-- $(MAKE) '$$TARGET'
|
||
|
|
||
|
run-standalone:
|
||
|
./knyc
|
||
|
|
||
|
_run-endless-loop:
|
||
|
while true; do $(MAKE) run || sleep 3; done
|
||
|
|
||
|
_run-inotify-restart:
|
||
|
inotifyloop . curl -s http://localhost:32039/__intern__/exit
|