ID: f517936608bf03941920e80e5a5874f8bbdf3377
34 lines
—
709B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/dabeaz/curio.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/python-curio
else
$(error OUTPUT_PATH is undefined)
endif
venv:
export PYENV_VERSION=3.7
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
v0.1 0.2 0.3 0.4 0.6 0.7 0.8 0.9 1.0 1.1 1.2 1.3 1.4 1.5 1.6: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install .
# Lock versions or it won't compile
pip install "sphinx < 4" "jinja2 < 3.1"
cd docs
make clean dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|