Added 3 dev makefiles, use make dev on root to build and yarn libs/clients

This commit is contained in:
Jože Fortun
2024-03-08 15:21:33 +01:00
parent 979dbe0b3c
commit 9a2bd3665c
3 changed files with 25 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
.PHONY: dev
dev:
@echo "---Building libs---"
@(cd $(CURDIR)/lib && make dev) || (echo "Failed to build libs"; exit 1)
@echo "---Yarning clients---"
@(cd $(CURDIR)/client && make yarn) || (echo "Failed to yarn clients"; exit 1)
.DEFAULT_GOAL := dev
+3 -4
View File
@@ -1,12 +1,11 @@
WEB_SUBDIRS := $(filter %/, $(wildcard web/*/))
WEB_SUBDIRS := $(filter %/, $(wildcard $(CURDIR)/web/*/))
.PHONY: yarn
yarn:
@for dir in $(WEB_SUBDIRS); do \
echo "Entering $$dir"; \
cd $$dir && yarn; \
cd ../..; \
echo "---Yarning $$dir---"; \
(cd $$dir && yarn) || (echo "Failed to yarn $$dir"; exit 1); \
done
.DEFAULT_GOAL := yarn
+13
View File
@@ -0,0 +1,13 @@
LIB_SUBDIRS := $(filter %/, $(wildcard */))
.PHONY: build dev
build:
@echo "---Building js---"
@(cd $(CURDIR)/js && yarn && yarn build) || (echo "Failed to build js"; exit 1)
@echo "---Building vue---"
@(cd $(CURDIR)/vue && yarn && yarn build) || (echo "Failed to build vue"; exit 1)
dev: build
.DEFAULT_GOAL := dev