-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
31 lines (24 loc) · 810 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
29
30
31
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
.DEFAULT_GOAL := help
update: ## update project dependencies locally (run after git update)
poetry update
.PHONY: update
install: ## install poetry dependencies locally (run after git install)
poetry install
.PHONY: install
build: ## build documentation
poetry run mkdocs build
.PHONY: build
serve: build ## build and serve documentation locally
poetry run mkdocs serve
.PHONY: serve
clean: ## remove generated documents
rm -rf site/
.PHONY: clean
help: Makefile ## print help
@grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'