ID: a1b5d401d3ace5eae23321abcc48eb84fc42f0f7
52 lines
—
1K —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/flexmock/flexmock.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/flexmock
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.8:
export PYENV_VERSION=3.8
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
0.12.1: check_env_vars venv-3.8 repository
export PYENV_VERSION=3.8
source venv/bin/activate
cd repository
git checkout tags/$@
poetry install
mkdir --parents "${OUTPUT_PATH}"
poetry run mkdocs build --site-dir "${OUTPUT_PATH}/$@"
0.11.3: check_env_vars venv-3.8 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r docs/requirements.txt
pip install .
mkdir --parents "${OUTPUT_PATH}"
mkdocs build --site-dir "${OUTPUT_PATH}/$@"
0.10.10: check_env_vars venv-3.8 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install .
pip install sphinx
cd docs
make clean
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|