ID: aef0a3d7afde84fd6708c541a675ded34ce188c6
47 lines
—
1K —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/zopefoundation/zope.interface.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/zope.interface
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
6.1: check_env_vars venv repository
mkdir --parents "${OUTPUT_PATH}"
source venv/bin/activate
cd repository
git checkout tags/$@
# Lock sphinx version because of some deprecation warnings
pip install "sphinx < 8"
pip install .
pip install -r docs/requirements.txt
cd docs
make dirhtml
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
5.0.0 5.1.0 5.2.0 5.3.0 5.4.0 5.5.0 6.0: check_env_vars venv repository
mkdir --parents "${OUTPUT_PATH}"
source venv/bin/activate
cd repository
git checkout tags/$@
# Lock sphinx version because of some deprecation warnings
pip install "sphinx < 8"
pip install .
pip install -r rtd.txt
cd docs
make dirhtml
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|