Skip to content

Instantly share code, notes, and snippets.

@jmfederico
Last active July 10, 2020 11:04
Show Gist options
  • Save jmfederico/92cabcc4059e195b88e0974f0a33fdda to your computer and use it in GitHub Desktop.
Save jmfederico/92cabcc4059e195b88e0974f0a33fdda to your computer and use it in GitHub Desktop.
An awsome Makefile
# On OSX the PATH variable isn't exported unless "SHELL" is also set, see: http://stackoverflow.com/a/25506676
SHELL = /bin/zsh
.DEFAULT_GOAL := help
TMPDIR := $(shell mktemp -d)
include .env
INTRO = "\n\e[33m------------------------------\e[32m\n$@\n\e[33m------------------------------\e[39m\n"
help: ## Prints this message
@perl -nle'print $& if m{^[a-zA-Z_-]+:.*?## .*$$}' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-25s\033[0m %s\n", $$1, $$2}'
-include ./Makefiles/*.make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment