home » zplus/dokk.git
ID: 5ba9c1d59976b098b5cf8b9dc59c565c13ff60a9
32 lines — 645B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/spatialaudio/nbsphinx.git

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

venv:
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

# Requires subversion librsvg2-bin
0.8.12 0.9.3: check_env_vars venv repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install -e .
	pip install -r doc/requirements.txt
	pip install -r doc/fallback_theme.txt
	mkdir --parents "${OUTPUT_PATH}"
	sphinx-build -b dirhtml doc "${OUTPUT_PATH}/$@"

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