Skip to content

Commit 6c6288e

Browse files
committed
Add help docs for module-check and module-init
Now command `make` will show help docs for `module-check` and `module-init` targets also.
1 parent 46f8258 commit 6c6288e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ CCEND=\033[0m
1919
help: ## Show this help.
2020
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
2121

22-
module-check:
22+
module-check: ## Check if all of the required submodules are correctly initialized.
2323
@git submodule status --recursive | awk '/^[+-]/ {err = 1; printf "\033[31mWARNING\033[0m Submodule not initialized: \033[34m%s\033[0m\n",$$2} END { if (err != 0) print "You need to run \033[32mmake module-init\033[0m to initialize missing modules first"; exit err }' 1>&2
2424

25-
module-init:
25+
module-init: ## Initialize required submodules.
2626
@echo "Initializing submodules..." 1>&2
2727
@git submodule update --init --recursive --depth 1
2828

0 commit comments

Comments
 (0)