Skip to content

Commit 0f15e44

Browse files
committed
Makefile: sort make commands and fix printing newlines
Updates #cleanup Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d Signed-off-by: Will Norris <[email protected]>
1 parent d897d80 commit 0f15e44

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ generate: ## Generate code
138138
./tool/go generate ./...
139139

140140
help: ## Show this help
141-
@echo "\nSpecify a command. The choices are:\n"
142-
@grep -hE '^[0-9a-zA-Z_-]+:.*?## .*$$' ${MAKEFILE_LIST} | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[0;36m%-20s\033[m %s\n", $$1, $$2}'
141+
@echo ""
142+
@echo "Specify a command. The choices are:"
143+
@echo ""
144+
@grep -hE '^[0-9a-zA-Z_-]+:.*?## .*$$' ${MAKEFILE_LIST} | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[0;36m%-20s\033[m %s\n", $$1, $$2}'
143145
@echo ""
144146
.PHONY: help
145147

0 commit comments

Comments
 (0)