ID: 0a87bcda294f4707c07fa670a4a8ae256e6d8de1
53 lines
—
1K —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/wtforms/wtforms.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/wtforms
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
3.0.0 3.0.1 3.1.0 3.1.1: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install .
pip install -r docs/requirements.txt
cd docs
make clean dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
2.3.3: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install .
pip install -r docs/requirements.txt
pip install "jinja2 < 3.1"
cd docs
make clean dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
1.0.5 2.0.2 2.1 2.2.1: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install .
pip install sphinx python-dateutil "jinja2 < 3.1"
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml docs/ "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|