ID: d1f6224efbfc74925306e5e7b606300da117d35f
30 lines
—
583B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/rspeer/python-ftfy.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/python-ftfy
else
$(error OUTPUT_PATH is undefined)
endif
repository:
git clone ${REPOSITORY} repository
v6.1.1: check_env_vars repository
export PYENV_VERSION=3.8
cd repository
git checkout tags/$@
poetry install
poetry run pip install .[docs]
cd docs
poetry run make clean
poetry run make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|