Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

self-documenting makefile

.PHONY: help

help:
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "33[36m%-30s33[0m %s
", $$1, $$2}'

# All rules with double-hash comments will be automatically displayed in the make help rule
newrule: ## This is what will show up for this rule's help
	echo Hello World
Source by marmelab.com #
 
PREVIOUS NEXT
Tagged: #makefile
ADD COMMENT
Topic
Name
8+1 =