Skip to content

Commit 6d3332b

Browse files
authored
Fix help.mk awk bug (#456)
1 parent aba1687 commit 6d3332b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/makefile/help.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ help:
1111
@echo -e ' ${YELLOW}make${RESET} ${GREEN}<target>${RESET}'
1212
@echo ''
1313
@echo 'Targets:'
14-
@awk '/^[a-zA-Z\-\_0-9]+:/ { \
14+
@awk '/^[a-zA-Z\-_0-9]+:/ { \
1515
helpMessage = match(lastLine, /^## (.*)/); \
1616
if (helpMessage) { \
1717
helpCommand = substr($$1, 0, index($$1, ":")); \
1818
helpMessage = substr(lastLine, RSTART + 3, RLENGTH); \
1919
printf " ${YELLOW}%-$(TARGET_MAX_CHAR_NUM)s${RESET} ${GREEN}%s${RESET}\n", helpCommand, helpMessage; \
2020
} \
2121
} \
22-
{ lastLine = $$0 }' $(MAKEFILE_LIST)
22+
{ lastLine = $$0 }' $(MAKEFILE_LIST)
23+

0 commit comments

Comments
 (0)