ID: db88bfcbf852a7e587535ba891c933c8dca9f7ac
49 lines
—
1K —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/aio-libs/aiohttp-jinja2.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/aiohttp-jinja2
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.11:
export PYENV_VERSION=3.11
python3 -m venv venv
venv-3.9:
export PYENV_VERSION=3.9
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
v1.5.1 v1.6: check_env_vars venv-3.11 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements.txt -r requirements-dev.txt
cd docs
make clean
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
v0.17.0 v1.4.2: check_env_vars venv-3.9 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements-dev.txt
pip install "markupsafe == 2.0.1" "sphinx == 5"
cd docs
make clean
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|