home » zplus/dokk.git
ID: 458998edecc16089506e14a6c17b0643cc5e1826
31 lines — 579B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/h5py/h5py.git

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

venv:
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

3.7.0 3.8.0 3.9.0 3.10.0: check_env_vars venv repository
	mkdir --parents "${OUTPUT_PATH}"
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install -r docs/requirements-rtd.txt
	cd docs
	make dirhtml
	cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"

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