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