ID: 970b6ba64910990bbd2a76638684c2fdb6610273
50 lines
—
1K —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/jupyterhub/repo2docker.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/jupyterhub-repo2docker
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.10:
export PYENV_VERSION=3.10
python3 -m venv venv
venv-3.8:
export PYENV_VERSION=3.8
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
2023.06.0: check_env_vars venv-3.10 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r docs/requirements.txt
pip install matplotlib
pip install .
cd docs
make clean
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
2021.08.0 2022.10.0: check_env_vars venv-3.8 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r docs/doc-requirements.txt
pip install matplotlib
pip install .
cd docs/source/
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|