ID: ef5dc2117c7b4a38eebda894766ebba2b4ef00d2
47 lines
—
1K —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/bedops/bedops.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/bedops
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.6:
export PYENV_VERSION=3.6
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
v2.4.41: check_env_vars venv-3.6 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r docs/requirements.txt
pip install sphinx
cd docs
make clean
make html
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/html "${OUTPUT_PATH}/$@"
# This build gives this error: sphinx.ext.mathjax: other math package is already loaded
# I don't know how to fix it, but it compiles if I remove (manually) sphinx.ext.pngmath from docs/conf.py
v2.3.0: check_env_vars venv-3.6 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install "sphinx < 1.8"
cd docs
make clean
make html
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/html "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|