ID: 560c44df9fdbb87e4bb9170fcd4a341684f4e3de
31 lines
—
634B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/bottlepy/bottle.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/bottlepy
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.7:
export PYENV_VERSION=3.7
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
0.12.25: check_env_vars venv-3.7 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install setuptools wheel twine coverage sphinx sphinx-intl transifex-client
make docs
mkdir --parents "${OUTPUT_PATH}"
cp --recursive build/docs/html "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|