Created
March 14, 2016 19:13
-
-
Save alex-bender/2e2cee3d060d01d185a8 to your computer and use it in GitHub Desktop.
Self-documented Makefile; Require silver searcher aka ag
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
CFLAGS=-Wall -g | |
clean: ## Clean directory | |
rm -f *.o | |
help: ## Help target | |
@ag '^[a-zA-Z_-]+:.*?## .*$$' --nofilename $(MAKEFILE_LIST) \ | |
| sort \ | |
| awk 'BEGIN{FS=": ## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | |
.DEFAULT_GOAL := help |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment