ID: 3c2ae7e2c505c6d892bbe0372555dd1a9142d6cc
39 lines
—
829B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/kjolley/BIGSdb_documentation.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/bigsdb
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
v1.39.0 v1.42.0: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements.txt
make clean dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
v1.9.0 v1.19.0 v1.29.0: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install "sphinx < 5"
make clean dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|