Last active
May 13, 2026 11:45
-
Star
(338)
You must be signed in to star a gist -
Fork
(47)
You must be signed in to fork a gist
-
-
Save prwhite/8168133 to your computer and use it in GitHub Desktop.
Add a help target to a Makefile that will allow all targets to be self documenting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Add the following 'help' target to your Makefile | |
| # And add help text after each target name starting with '\#\#' | |
| help: ## Show this help. | |
| @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | |
| # Everything below is an example | |
| target00: ## This message will show up when typing 'make help' | |
| @echo does nothing | |
| target01: ## This message will also show up when typing 'make help' | |
| @echo does something | |
| # Remember that targets can have multiple entries (if your target specifications are very long, etc.) | |
| target02: ## This message will show up too!!! | |
| target02: target00 target01 | |
| @echo does even more |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you are always on the go, you often have to review documents or articles straight from your smartphone. Not all checking websites are optimized for mobile screens, which slows down workflow. I find it very convenient to use a dedicated brisk AI detector app instead. You can quickly copy text from your emails and instantly know if it was written by a chatbot.