Skip to content

Instantly share code, notes, and snippets.

@pplmx
Last active September 4, 2023 02:27
Show Gist options
  • Select an option

  • Save pplmx/11f6515fa12d7b96d856a18f6373d3f6 to your computer and use it in GitHub Desktop.

Select an option

Save pplmx/11f6515fa12d7b96d856a18f6373d3f6 to your computer and use it in GitHub Desktop.

Revisions

  1. pplmx revised this gist Sep 4, 2023. No changes.
  2. pplmx revised this gist Sep 4, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Makefile
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    help:
    @echo ""
    @echo "Usage:"
    @echo " make [target]"
    @echo " make [target]"
    @echo ""
    @echo "Targets:"
    @awk '/^[a-zA-Z\-_0-9]+:/ \
  3. pplmx revised this gist May 9, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Makefile
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    .PHONY help
    .PHONY: help
    .DEFAULT_GOAL := help

    # Show help
  4. pplmx revised this gist May 7, 2023. 1 changed file with 10 additions and 10 deletions.
    20 changes: 10 additions & 10 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,19 @@
    .PHONY help

    .DEFAULT_GOAL := help

    # Show help
    help:
    @echo ""
    @echo "Usage:"
    @echo " make [target]"
    @echo ""
    @echo "Targets:"
    @awk '/^[a-zA-Z\-_0-9]+:/ { \
    helpMessage = match(lastLine, /^# (.*)/); \
    if (helpMessage) { \
    helpCommand = substr($$1, 0, index($$1, ":")-1); \
    helpMessage = substr(lastLine, RSTART + 2, RLENGTH); \
    printf "\033[36m%-22s\033[0m %s\n", helpCommand,helpMessage; \
    } \
    } \
    { lastLine = $$0 }' $(MAKEFILE_LIST)
    @awk '/^[a-zA-Z\-_0-9]+:/ \
    { \
    helpMessage = match(lastLine, /^# (.*)/); \
    if (helpMessage) { \
    helpCommand = substr($$1, 0, index($$1, ":")-1); \
    helpMessage = substr(lastLine, RSTART + 2, RLENGTH); \
    printf "\033[36m%-22s\033[0m %s\n", helpCommand,helpMessage; \
    } \
    } { lastLine = $$0 }' $(MAKEFILE_LIST)
  5. pplmx revised this gist May 7, 2023. 1 changed file with 14 additions and 15 deletions.
    29 changes: 14 additions & 15 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -3,18 +3,17 @@
    .DEFAULT_GOAL := help

    help:
    @echo ''
    @echo 'Usage:'
    @echo ' make [target]'
    @echo ''
    @echo 'Targets:'
    @awk '/^[a-zA-Z\-\_0-9]+:/ { \
    helpMessage = match(lastLine, /^# (.*)/); \
    if (helpMessage) { \
    helpCommand = substr($$1, 0, index($$1, ":")-1); \
    helpMessage = substr(lastLine, RSTART + 2, RLENGTH); \
    printf "\033[36m%-22s\033[0m %s\n", helpCommand,helpMessage; \
    } \
    } \
    { lastLine = $$0 }' $(MAKEFILE_LIST)

    @echo ""
    @echo "Usage:"
    @echo " make [target]"
    @echo ""
    @echo "Targets:"
    @awk '/^[a-zA-Z\-_0-9]+:/ { \
    helpMessage = match(lastLine, /^# (.*)/); \
    if (helpMessage) { \
    helpCommand = substr($$1, 0, index($$1, ":")-1); \
    helpMessage = substr(lastLine, RSTART + 2, RLENGTH); \
    printf "\033[36m%-22s\033[0m %s\n", helpCommand,helpMessage; \
    } \
    } \
    { lastLine = $$0 }' $(MAKEFILE_LIST)
  6. pplmx revised this gist Apr 25, 2023. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -17,3 +17,4 @@ help:
    } \
    } \
    { lastLine = $$0 }' $(MAKEFILE_LIST)

  7. pplmx created this gist Apr 25, 2023.
    19 changes: 19 additions & 0 deletions Makefile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    .PHONY help

    .DEFAULT_GOAL := help

    help:
    @echo ''
    @echo 'Usage:'
    @echo ' make [target]'
    @echo ''
    @echo 'Targets:'
    @awk '/^[a-zA-Z\-\_0-9]+:/ { \
    helpMessage = match(lastLine, /^# (.*)/); \
    if (helpMessage) { \
    helpCommand = substr($$1, 0, index($$1, ":")-1); \
    helpMessage = substr(lastLine, RSTART + 2, RLENGTH); \
    printf "\033[36m%-22s\033[0m %s\n", helpCommand,helpMessage; \
    } \
    } \
    { lastLine = $$0 }' $(MAKEFILE_LIST)