home » zplus/dokk.git
ID: 48213c622233f3eaf79655448992e975d4fb9a79
32 lines — 569B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/fepegar/torchio.git

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

venv:
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

v0.18.92 v0.19.3: check_env_vars venv repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install .[doc]
	cd docs
	make clean
	make dirhtml
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive build/dirhtml "${OUTPUT_PATH}/$@"

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