feat: Makefile target setup

This commit is contained in:
Settel 2022-07-13 10:05:07 +02:00
parent b6420cf8ea
commit 597e8604b2

View File

@ -7,6 +7,20 @@ info:
@echo available targets: @echo available targets:
@perl -ne 'm/^([\w\-]+):/ && print(" $$1\n");' Makefile @perl -ne 'm/^([\w\-]+):/ && print(" $$1\n");' Makefile
setup:
@echo "I checking for tools"
@for binary in go tmux node yarn npx podman; do \
echo -n " $$binary: " ; \
if ! which "$$binary"; then \
echo "not found" ;\
exit 1 ;\
fi ;\
done
@echo "I installing client dependencies"
( cd client && yarn install )
@echo "I installing server dependencies"
( cd server/src/ && go mod tidy )
run-all: run-all:
pexec -R -c -e TARGET \ pexec -R -c -e TARGET \
-r run-client \ -r run-client \