forked from apache/dubbo-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (20 loc) · 806 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
SHELL := /usr/bin/env bash
.PHONY: help
help: ## Display this help screen
@# Display top-level targets since they are the ones most developes will need.
@grep -h -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort -k1 | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@# Now show hierarchical targets in separate sections.
@grep -h -E '^[a-zA-Z0-9_-]+/[a-zA-Z0-9/_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk '{print $$1}' | \
awk -F/ '{print $$1}' | \
sort -u | \
while read section ; do \
echo; \
grep -h -E "^$$section/[^:]+:.*?## .*$$" $(MAKEFILE_LIST) | sort -k1 | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' ; \
done
include mk/dev.mk
include mk/api.mk
include mk/check.mk
include mk/generate.mk
include mk/run.mk