ID: 433cb0e05bbe6b4be8451d805818a6b1677a4133
30 lines
—
590B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/ionelmc/python-aspectlib.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/python-aspectlib
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
v1.4.2 v1.5.2 v2.0.0: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r docs/requirements.txt
pip install .
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml docs/ "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|