From 987a6431003cdb860d48fbd26780f4122d82f005 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sat, 2 Apr 2016 20:07:36 +0200 Subject: [PATCH] Add self-documenting Makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..faddd964e --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +.PHONY: help + +PYTHON=$(shell which python) + +help: + @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' + +install-develop: ## Activate the development install + $(PYTHON) setup.py develop + +uninstall-develop: ## De-activate the development install + $(PYTHON) setup.py develop --uninstall + +install: ## Install the package + $(PYTHON) setup.py install + +check: ## Run all tests (remember to git submodule update --init) + $(PYTHON) setup.py test