home » zplus/dokk.git
ID: 4d735e8762a6eb048225990b6370870857e6f19b
33 lines — 611B — View raw


SHELL = /bin/bash

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

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

venv-3.7:
	export PYENV_VERSION=3.7
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

v2.10.70: check_env_vars venv-3.7 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install . sphinx
	cd docs
	make clean
	make dirhtml
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"

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