ID: bb0e887966afb43e47582affbf366a6ec5a8a14e
33 lines
—
790B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/guzzle/guzzle.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/guzzle
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
4.2.4 5.3.4 6.0.2 6.1.1 6.2.3 6.3.3 6.4.1 6.5.5 7.0.1 7.1.1 7.2.0 7.3.0 7.4.5 7.5.3 7.6.1 7.7.1 7.8.1: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
cd docs
pip install -r requirements.txt
# Must upgrade because it doesn't compile with the version in the requirements.txt
pip install --upgrade sphinx sphinx_rtd_theme
make clean dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|