-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
70 lines (48 loc) · 1.28 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
check-var-defined = $(if $(strip $($1)),,$(error "$1" is not defined))
export
target:
$(info ${HELP_MESSAGE})
@exit 0
deploy:
$(call check-var-defined,STAGE)
$(call check-var-defined,REGION)
$(call check-var-defined,INTEGRATION_API_KEY)
$(call check-var-defined,BUCKET_FOR_LAMBDAS)
$(info [*] Deploying...)
$(MAKE) deploy.backend-shared
$(MAKE) deploy.integration-endpoint
$(MAKE) deploy.product-catalog
$(MAKE) deploy.rolls
install:
$(info [*] Installing packages...)
$(MAKE) install.integration-endpoint
$(MAKE) install.product-catalog
$(MAKE) install.rolls
test:
$(info [*] Running tests...)
$(MAKE) test.integration-endpoint
$(MAKE) test.product-catalog
$(MAKE) test.rolls
deploy.backend-shared:
$(MAKE) -C backend-shared deploy
deploy.integration-endpoint:
$(MAKE) -C integration-endpoint deploy
deploy.product-catalog:
$(MAKE) -C product-catalog deploy
deploy.rolls:
$(MAKE) -C rolls deploy
install.integration-endpoint:
$(MAKE) -C integration-endpoint install
install.product-catalog:
$(MAKE) -C product-catalog install
install.rolls:
$(MAKE) -C rolls install
test.integration-endpoint:
$(MAKE) -C integration-endpoint test
test.product-catalog:
$(MAKE) -C product-catalog test
test.rolls:
$(MAKE) -C rolls test
define HELP_MESSAGE
See README.md.
endef