ID: 9cd686a68b4e4159c03b46dcbb6479eb20b93775
32 lines
—
607B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/dfm/emcee.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/emcee
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
v3.1.0 v3.1.1 v3.1.2 v3.1.3 v3.1.4: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r docs/requirements.txt
pip install .
cd docs
make clean dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|