forked from astlock/gcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (17 loc) · 828 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
MODULES=$(dir $(wildcard */Makefile))
export ROOT_DIR=$(CURDIR)
export DOCKER_REPO=github
lint: ## Call the 'lint' target on all sub-modules
echo $(ROOT)
$(foreach mod,$(MODULES),($(MAKE) -C $(mod) $@) || exit $$?;)
build: ## Call the 'build' target on all sub-modules
$(foreach mod,$(MODULES),($(MAKE) -C $(mod) $@) || exit $$?;)
test: ## Call the 'test' target on all sub-modules
$(foreach mod,$(MODULES),($(MAKE) -C $(mod) $@) || exit $$?;)
publish: ## Call the 'publish' target on all sub-modules
$(foreach mod,$(MODULES),($(MAKE) -C $(mod) $@) || exit $$?;)
dev-all: lint build test
.PHONY: help
help:
# $(foreach mod,$(MODULES),$(MAKE) -C $(mod) $@;)
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | sed 's/^[^:]*://g' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'