ID: e4415275c6a1a09f2fc77023a42581fb31120214
31 lines
—
571B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/Pylons/waitress.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/pylons-waitress
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
v1.4.4 v2.0.0 v2.1.2: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r rtd.txt
pip install .
cd docs
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|