-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (27 loc) · 973 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
32
33
34
35
.DEFAULT_GOAL := help
.PHONY: test
test: ## Invoke tests
@tests/test_wb.py -v
.PHONY: docs
docs: ## Open last built html docs
@open docs/build/html/index.html
.PHONY: install-deps
install-deps: ## Install build tools and dependencies
@pip3 install sphinx
@pip3 install sphinx_rtd_theme
.PHONY: clean-docs
clean-docs: ## Remove docs/build folder
@echo "Removing docs/build"
@rm -rf docs/build
.PHONY: clean
clean: clean-docs ## Clean up all built data
@echo "Done."
.PHONY: build-docs
build-docs: clean-docs ## Build html documentation
@cd docs && make html
.PHONY: build
build: install-deps build-docs ## Install build dependencies and build
@echo "Done."
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-16s\033[0m %s\n", $$1, $$2}'