From 597e8604b2fe22250e857f5c94eb804c8ce01316 Mon Sep 17 00:00:00 2001 From: Settel Date: Wed, 13 Jul 2022 10:05:07 +0200 Subject: [PATCH] feat: Makefile target setup --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile b/Makefile index ab7a62c..65c27d7 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,20 @@ info: @echo available targets: @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: pexec -R -c -e TARGET \ -r run-client \