ID: e80816e6e75f829d37125f1b26a12523be43ca18
45 lines
—
1013B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/zopefoundation/ZODB.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/zodb
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
5.7.0 5.8.0: check_env_vars venv repository
mkdir --parents "${OUTPUT_PATH}"
source venv/bin/activate
cd repository
git checkout tags/$@
# We lock sphinx to version <7.2 because it's not compiling with >=7.2
pip install "sphinx < 7.2"
pip install .
pip install -r docs/requirements.txt
cd docs
sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@"
5.6.0: check_env_vars venv repository
mkdir --parents "${OUTPUT_PATH}"
source venv/bin/activate
cd repository
git checkout tags/$@
# We lock sphinx to version <7.2 because it's not compiling with >=7.2
#pip install "sphinx < 7.2"
pip install .
pip install -r doc/requirements.txt
cd doc
sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|