ID: 4931fd16fe2cef3593bb39718c75c9ee3dfed323
47 lines
—
986B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/aio-libs/aiomonitor.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/aiomonitor
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.11:
export PYENV_VERSION=3.11
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
v0.5.0 v0.6.0 v0.7.0: check_env_vars venv-3.11 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements-doc.txt
pip install .
cd docs
make clean
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
v0.2.1 v0.3.1 v0.4.5: check_env_vars venv-3.11 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements-doc.txt
pip install "jinja2 < 3.1" "sphinx == 5"
pip install .
cd docs
make clean
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|