Created
June 16, 2020 23:08
-
-
Save loganlinn/24d765109af2b53c75a16d9d401b8b49 to your computer and use it in GitHub Desktop.
Base Makefile for Python project
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
SHELL := bash | |
.ONESHELL: | |
.SHELLFLAGS := -eu -o pipefail -c | |
.DELETE_ON_ERROR: | |
MAKEFLAGS += --warn-undefined-variables | |
MAKEFLAGS += --no-builtin-rules | |
help: ## displays available make targets | |
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | |
.PHONY: help | |
include Makefile.venv | |
Makefile.venv: | |
curl \ | |
-o Makefile.fetched \ | |
-L "https://github.com/sio/Makefile.venv/raw/v2020.05.07/Makefile.venv" | |
echo "ab60a72bb9215935db6d3d8cd0f8dfe8cd48e8cca0235227ecc476f1cff46e51 *Makefile.fetched" \ | |
| sha256sum --check - \ | |
&& mv Makefile.fetched Makefile.venv | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment