ID: a971a227f877bbb3614f6feddac47ac84f783fad
33 lines
—
647B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/luispedro/mahotas.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/mahotas
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.11:
export PYENV_VERSION=3.11
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
v1.4.15: check_env_vars venv-3.11 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r readthedocs-requirements.txt
pip install .
mkdir --parents "${OUTPUT_PATH}"
cd docs
sphinx-build -b dirhtml source _output
cp --recursive _output "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|