home » zplus/dokk.git
ID: 2445428934a0c7aca4f1316f53559eb73ef26536
31 lines — 548B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/fredrik-johansson/arb.git

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

venv:
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

2.23.0: check_env_vars venv repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install sphinx
	cd doc
	make dirhtml
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive build/dirhtml "${OUTPUT_PATH}/$@"

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