-
-
Notifications
You must be signed in to change notification settings - Fork 244
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (17 loc) · 582 Bytes
/
Makefile
File metadata and controls
22 lines (17 loc) · 582 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Python version can be specified with `$ PYTHON_EXE=python3.x make ...`
PYTHON_EXE?=python3
VENV_LOCATION=venv
ACTIVATE?=. ${VENV_LOCATION}/bin/activate;
conf:
@echo "-> Install dependencies"
./configure --docs
docs: conf
rm -rf docs/build/
@${ACTIVATE} sphinx-build -E -W docs/source docs/build/
check:
@${ACTIVATE} doc8 --max-line-length 100 docs/source/ --ignore D000 --quiet
clean:
@echo "-> Clean the Python env"
rm -rf .venv/ .*cache/ *.egg-info/ build/ dist/
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
.PHONY: conf docs clean