home » zplus/dokk.git
ID: 0f4e7addff47d2d53f5b12ef3e5031b4864e30db
32 lines — 691B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/apache/couchdb.git

check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/couchdb
else
	$(error OUTPUT_PATH is undefined)
endif

venv:
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

3.3.0: check_env_vars venv repository
	mkdir --parents "${OUTPUT_PATH}"
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	cd src/docs/
	pip3 install -r requirements.txt
# couchdb only has Makefile rules for "html", but not "dirhtml". Therefore, instead of
# calling "make dirhtml" we call sphinx-build directly
	sphinx-build -b dirhtml src "${OUTPUT_PATH}/$@"

.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR: