Skip to content

Instantly share code, notes, and snippets.

View mazzystr's full-sized avatar

Chris Callegari mazzystr

  • NASA Center for Climate Simulation
  • Olympia, WA
  • 22:43 (UTC -07:00)
View GitHub Profile
@prwhite
prwhite / Makefile
Last active April 19, 2025 09:46
Add a help target to a Makefile that will allow all targets to be self documenting
# 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