feat: Makefile target setup
This commit is contained in:
parent
b6420cf8ea
commit
597e8604b2
14
Makefile
14
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 \
|
||||
|
Loading…
Reference in New Issue
Block a user