-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (32 loc) · 683 Bytes
/
Makefile
File metadata and controls
41 lines (32 loc) · 683 Bytes
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
.PHONY: *
include .makefiles/Makefile.base.mk
ENV ?= stg
define HELP_SCREEN
api-% - API targets
infra-% - Infra targets
website-% - Website targets
e2etest-% - E2Etest targets
apitest-% - APItest targets
deployer-% - Deployer targets
endef
define run_target
@$(MAKE) -C $(1) $(2) ENV=$(ENV)
endef
api: api-list
api-%:
$(call run_target,api,$*)
infra: infra-list
infra-%:
$(call run_target,infra,$*)
website: website-list
website-%:
$(call run_target,website,$*)
e2etest: e2etest-list
e2etest-%:
$(call run_target,e2etest,$*)
apitest: apitest-list
apitest-%:
$(call run_target,apitest,$*)
deployer: deployer-list
deployer-%:
$(call run_target,deployer,$*)