ID: 4ad4fa3ffecaf1170bef0104ed65d54ac08d2959
33 lines
—
679B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/jnwatson/py-lmdb.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/pylmdb
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.11:
export PYENV_VERSION=3.11
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
py-lmdb_0.99 py-lmdb_1.0.0 py-lmdb_1.1.1 py-lmdb_1.2.1 py-lmdb_1.3.0 py-lmdb_1.4.1: check_env_vars venv-3.11 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install "sphinx < 7"
cd docs
make clean
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|