SHELL = /bin/bash REPOSITORY = https://github.com/python-trio/trio.git check_env_vars: ifdef OUTPUT_PATH OUTPUT_PATH := ${OUTPUT_PATH}/python-trio else $(error OUTPUT_PATH is undefined) endif venv: python3 -m venv venv venv-3.7: export PYENV_VERSION=3.7 python3 -m venv venv repository: git clone ${REPOSITORY} repository v0.22.2 v0.23.2: check_env_vars venv repository source venv/bin/activate cd repository git checkout tags/$@ pip install -r docs-requirements.txt cd docs make clean dirhtml mkdir --parents "${OUTPUT_PATH}" cp --recursive build/dirhtml "${OUTPUT_PATH}/$@" v0.12.1 v0.13.0 v0.14.0 v0.15.1 v0.16.0 v0.17.0 v0.18.0 v0.19.0 v0.20.0 v0.21.0: check_env_vars venv-3.7 repository source venv/bin/activate cd repository git checkout tags/$@ pip install -r docs-requirements.txt cd docs make clean dirhtml mkdir --parents "${OUTPUT_PATH}" cp --recursive build/dirhtml "${OUTPUT_PATH}/$@" .ONESHELL: .SUFFIXES: .PHONY: .DELETE_ON_ERROR: