ID: 1f5b8781e1e0940a2a8ef37bd94b7ed67e715b0a
31 lines
—
614B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/cookiecutter/cookiecutter.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/cookiecutter
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.10:
export PYENV_VERSION=3.10
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
1.7.3 2.5.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 .
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml docs "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|