ID: fa92a53e6d0f4424249ec5ceb0dbb5eecdb6a242
33 lines
—
627B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/DocNow/twarc.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/twarc
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.8:
export PYENV_VERSION=3.8
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
v2.14.0: check_env_vars venv-3.8 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements.txt
pip install -r requirements-mkdocs.txt
pip install .
mkdocs build
mkdir --parents "${OUTPUT_PATH}"
cp --recursive site "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|