Skip to content

Instantly share code, notes, and snippets.

@rjkip
Created July 7, 2016 13:48
Show Gist options
  • Save rjkip/5b5c473ae755272ea79da0a3979a7ed6 to your computer and use it in GitHub Desktop.
Save rjkip/5b5c473ae755272ea79da0a3979a7ed6 to your computer and use it in GitHub Desktop.
Makefile target list
.RECIPEPREFIX +=
help:
@echo
@echo "\033[0;33mAvailable targets:\033[0m"
@cat Makefile | sed 's/: /: → /' | GREP_COLORS="ms=00;32" grep --colour=always -P '^[a-z0-9].+:' | column -s ':' -t | sed 's/^/ /'
test: test-fast test-slow
test-fast:
@echo OK
test-slow:
@echo OK
@rjkip
Copy link
Author

rjkip commented Jul 7, 2016

Creates this:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment