ID: fac82f3f44c4dbc8d2766b64053414adfc11bbed
33 lines
—
672B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/GeotrekCE/Geotrek-admin.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/geotrek-admin
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.11:
export PYENV_VERSION=3.11
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
2.49.0 2.59.0 2.69.0 2.79.0 2.89.1 2.99.0 2.101.5: check_env_vars venv-3.11 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r docs/requirements.txt
cd docs
make clean
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|