Skip to content

Instantly share code, notes, and snippets.

@rmchale
Last active August 28, 2021 18:02
Show Gist options
  • Save rmchale/ab135b17c727852fdcb4155d293fc2cc to your computer and use it in GitHub Desktop.
Save rmchale/ab135b17c727852fdcb4155d293fc2cc to your computer and use it in GitHub Desktop.
My makefile template
SHELL := /bin/bash
.DEFAULT_GOAL := help
hello: ## hello
@echo "hello world"
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment