Skip to content

Instantly share code, notes, and snippets.

@johnhof
Last active Jan 28, 2020
Embed
What would you like to do?
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --no-builtin-rules
.PHONY: help
help: ## Lists targets and their descriptions
@##grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | cut -d: -f2- | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: init
init: ## Initializes the project directory
pre-commit install
.PHONY: clean
clean: ## Clears out project directory generated files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment