ID: ac081fc11e828cb80872a545f4f72c3bfd60ebb8
33 lines
—
645B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/ronf/asyncssh.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/asyncssh
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.11:
export PYENV_VERSION=3.11
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
v2.14.2: check_env_vars venv-3.11 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r docs/requirements.txt
pip install -r docs/rtd-req.txt
pip install "sphinx == 5"
cd docs
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|