Add Make file for linking libraries
This commit is contained in:
parent
72d6ff8ee5
commit
ceb717266f
6
Makefile
6
Makefile
@ -1,9 +1,9 @@
|
|||||||
.PHONY: dev
|
.PHONY: dev
|
||||||
|
|
||||||
dev:
|
dev:
|
||||||
@echo "---Building libs---"
|
@echo "---Processing libs---"
|
||||||
@(cd $(CURDIR)/lib && make dev) || (echo "Failed to build libs"; exit 1)
|
@(cd $(CURDIR)/lib && make dev) || (echo "Failed to build libs"; exit 1)
|
||||||
@echo "---Yarning clients---"
|
@echo "---Processing clients---"
|
||||||
@(cd $(CURDIR)/client && make yarn) || (echo "Failed to yarn clients"; exit 1)
|
@(cd $(CURDIR)/client && make dev) || (echo "Failed to yarn clients"; exit 1)
|
||||||
|
|
||||||
.DEFAULT_GOAL := dev
|
.DEFAULT_GOAL := dev
|
||||||
@ -1,6 +1,6 @@
|
|||||||
WEB_SUBDIRS := $(filter %/, $(wildcard $(CURDIR)/web/*/))
|
WEB_SUBDIRS := $(filter %/, $(wildcard $(CURDIR)/web/*/))
|
||||||
|
|
||||||
.PHONY: yarn
|
.PHONY: dev
|
||||||
|
|
||||||
yarn:
|
yarn:
|
||||||
@for dir in $(WEB_SUBDIRS); do \
|
@for dir in $(WEB_SUBDIRS); do \
|
||||||
@ -8,4 +8,10 @@ yarn:
|
|||||||
(cd $$dir && yarn) || (echo "Failed to yarn $$dir"; exit 1); \
|
(cd $$dir && yarn) || (echo "Failed to yarn $$dir"; exit 1); \
|
||||||
done
|
done
|
||||||
|
|
||||||
.DEFAULT_GOAL := yarn
|
dev:
|
||||||
|
@for dir in $(WEB_SUBDIRS); do \
|
||||||
|
echo "---Installing and linking clients $$dir---"; \
|
||||||
|
(cd $$dir && yarn && yarn link @cortezaproject/corteza-js && yarn link @cortezaproject/corteza-vue) || (echo "Failed to run yarn or link libs $$dir"; exit 1); \
|
||||||
|
done
|
||||||
|
|
||||||
|
.DEFAULT_GOAL := dev
|
||||||
@ -1,5 +1,3 @@
|
|||||||
LIB_SUBDIRS := $(filter %/, $(wildcard */))
|
|
||||||
|
|
||||||
.PHONY: build dev
|
.PHONY: build dev
|
||||||
|
|
||||||
build:
|
build:
|
||||||
@ -9,5 +7,9 @@ build:
|
|||||||
@(cd $(CURDIR)/vue && yarn && yarn build) || (echo "Failed to build vue"; exit 1)
|
@(cd $(CURDIR)/vue && yarn && yarn build) || (echo "Failed to build vue"; exit 1)
|
||||||
|
|
||||||
dev: build
|
dev: build
|
||||||
|
@echo "---Creating sym link for js---"
|
||||||
|
@(cd $(CURDIR)/js && yarn link) || (echo "Failed to link js"; exit 1)
|
||||||
|
@echo "---Building vue and creating sym link---"
|
||||||
|
@(cd $(CURDIR)/vue && yarn link && yarn link @cortezaproject/corteza-js) || (echo "Failed to process vue lib"; exit 1)
|
||||||
|
|
||||||
.DEFAULT_GOAL := dev
|
.DEFAULT_GOAL := dev
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user