-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
44 lines (34 loc) · 1.5 KB
/
Copy pathmakefile
File metadata and controls
44 lines (34 loc) · 1.5 KB
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
include ./globals.mk
# ------------------------------------------------------------------------------
# SETUP MODULES
# ------------------------------------------------------------------------------
# Use this if you don't care about sub-module order
MODULES=$(dir $(wildcard */makefile))
# Use this if it matters which order sub-modules build/deploy in
# MODULES = sample-ui sample-docker
# ------------------------------------------------------------------------------
# DECLARE RULES
# ------------------------------------------------------------------------------
.PHONY: clean
clean: ## Call the 'clean' target on all sub-modules
$(foreach mod,$(MODULES),($(MAKE) -C $(mod) $@) || exit $$?;)
.PHONY: lint
lint: ## Call the 'lint' target on all sub-modules
$(foreach mod,$(MODULES),($(MAKE) -C $(mod) $@) || exit $$?;)
.PHONY: build
build: ## Call the 'build' target on all sub-modules
$(foreach mod,$(MODULES),($(MAKE) -C $(mod) $@) || exit $$?;)
.PHONY: test
test: ## Call the 'test' target on all sub-modules
$(foreach mod,$(MODULES),($(MAKE) -C $(mod) $@) || exit $$?;)
.PHONY: plan
plan: ## Call the 'plan' target on all sub-modules
$(foreach mod,$(MODULES),($(MAKE) -C $(mod) $@) || exit $$?;)
.PHONY: publish
publish: ## Call the 'publish' target on all sub-modules
$(foreach mod,$(MODULES),($(MAKE) -C $(mod) $@) || exit $$?;)
.PHONY: destroy
destroy: ## Call the 'destroy' target on all sub-modules
$(foreach mod,$(MODULES),($(MAKE) -C $(mod) $@) || exit $$?;)
.PHONY: dev-all
dev-all: lint build test