.PHONY: all docs install all: install 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; \ doxygen docs/Doxyfile; \ sphinx-build -b html docs/source docs/build/html; \ deactivate \ ) install: install -d $(DEST_DIR)/ install -d $(DEST_DIR)/include/ for file in include/*; do \ install -m 644 $$file $(DEST_DIR)/include/; \ done