ID: 1e1f0209bdfd23bf77ba7036e97789dd879e30c0
32 lines
—
583B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/cython/cython.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/cython
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
0.29.36 3.0.0: check_env_vars venv repository
mkdir --parents "${OUTPUT_PATH}"
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r doc-requirements.txt
pip install .
cd docs
make dirhtml
cp --recursive build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|