-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (19 loc) · 661 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
define greentext
'\033[1;32m$(1)\033[0m'
endef
define cyantext
'\033[1;96m$(1)\033[0m'
endef
TARGETS = houston-common-lib/dist/index.js houston-common-ui/dist/index.js
default: $(TARGETS)
.SECONDEXPANSION:
$(TARGETS): %/dist/index.js: $$(shell find '$$*' -type d \( -name node_modules -o -path '$$*/dist' -o -path '*node_modules*' \) -prune -o -type f -not \( -name .gitignore \) -print)
@echo -e $(call cyantext,Building $*)
yarn --cwd $* install
yarn --cwd $* run build
@echo -e $(call greentext,Done building $*)
@echo
houston-common-ui/dist/index.js: houston-common-lib/dist/index.js
test: FORCE
yarn --cwd houston-common-lib run test
FORCE: