/
Makefile
28 lines (22 loc) · 839 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: all
all: help
# --------------------------------------------
.PHONY: clean
clean: ## Remove cached files and build products
@echo Cleaning caches and build products
@find . -type d -name .mypy_cache -exec rm -rf {} \; -prune
@find . -type d -name __pycache__ -exec rm -rf {} \; -prune
@find . -type d -name .ipynb_checkpoints -exec rm -rf {} \; -prune
@echo Cleaning complete
# --------------------------------------------
.PHONY: reset
reset: clean ## clean, then remove .venv and .mypy cache
@echo Resetting project state
rm -rf .mypy_cache .venv
# --------------------------------------------
.PHONY: help
help: ## Show help
@echo Please specify a target. Choices are:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk \
'BEGIN {FS = ":.*?## "}; \
{printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'