ID: 559bf1b66c661a80c613c3f6ead2533545b1cea8
32 lines
—
642B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/ckan/ckan.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/ckan
else
$(error OUTPUT_PATH is undefined)
endif
venv:
# Requires Python 3.7
export PYENV_VERSION=3.7
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
# Requires pg_config (libpq-dev in Debian)
ckan-2.9.10 ckan-2.10.3: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements-docs.txt
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml doc/ "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|