.PHONY: all docs all: docs docs: SHELL:=/bin/bash docs: if [ ! -d "docs/.venv" ]; then python3 -m venv "docs/.venv"; fi ( \ source docs/.venv/bin/activate;\ pip install -r docs/requirements.txt; \ sphinx-build -b html docs/source docs/build/html; \ deactivate \ )