2021-10-01 14:40:07 +00:00
|
|
|
TMUX_SESSION=knowyt
|
2021-07-29 16:39:27 +00:00
|
|
|
|
2022-03-09 08:09:13 +00:00
|
|
|
.PHONY: info run-all run-server run-client run-tmux build docker clean
|
|
|
|
|
2021-07-29 16:39:27 +00:00
|
|
|
info:
|
|
|
|
@echo available targets:
|
|
|
|
@perl -ne 'm/^([\w\-]+):/ && print(" $$1\n");' Makefile
|
|
|
|
|
|
|
|
grab-%:
|
|
|
|
$(MAKE) -C grabber "$@"
|
|
|
|
|
|
|
|
run-all:
|
|
|
|
pexec -R -c -e TARGET \
|
|
|
|
-r run-client \
|
|
|
|
-r run-server \
|
|
|
|
-- $(MAKE) '$$TARGET'
|
|
|
|
|
|
|
|
run-tmux:
|
|
|
|
tmux start-server
|
|
|
|
-tmux kill-session -t "$(TMUX_SESSION)"
|
|
|
|
tmux new-session -d -s "$(TMUX_SESSION)"
|
|
|
|
tmux send-keys "make run-client" C-m
|
|
|
|
tmux splitw -v -l 5
|
|
|
|
tmux send-keys "make run-server" C-m
|
|
|
|
tmux attach-session -t "$(TMUX_SESSION)"
|
|
|
|
|
|
|
|
run-client:
|
|
|
|
(cd client/ && yarn dev)
|
|
|
|
|
|
|
|
run-server:
|
|
|
|
$(MAKE) -C server run-loop
|
|
|
|
|
|
|
|
build:
|
|
|
|
(cd client/ && yarn generate)
|
|
|
|
$(MAKE) -C server build
|
2022-03-09 08:34:55 +00:00
|
|
|
$(MAKE) -C docker build save
|
2021-07-29 16:39:27 +00:00
|
|
|
|
2022-03-14 21:42:07 +00:00
|
|
|
docker-run:
|
|
|
|
$(MAKE) -C docker run
|
2022-03-03 09:29:01 +00:00
|
|
|
|
2021-07-29 16:39:27 +00:00
|
|
|
run-standalone:
|
|
|
|
$(MAKE) -C server run-standalone
|
2021-08-04 23:45:31 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf client/dist/
|
2021-08-05 00:22:28 +00:00
|
|
|
rm -rf client/.nuxt/
|
2022-03-03 07:40:14 +00:00
|
|
|
$(MAKE) -C server clean
|