Created
February 25, 2021 13:58
-
-
Save rdnt/34a539be516648b9523efd431973dac1 to your computer and use it in GitHub Desktop.
self-documenting-makefile
This file contains 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
#! Based on https://www.freecodecamp.org/news/self-documenting-makefile/ | |
MAKEFLAGS := --no-print-directory | |
help: | |
@egrep -h '\s#\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?# "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' | |
build: # builds | |
@echo "build" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment