home » zplus/dokk.git
ID: 382ccb398913e7eeec57a56bf6901f4d2b092037
34 lines — 671B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/mozman/ezdxf.git

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

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

repository:
	git clone ${REPOSITORY} repository

v1.1.4: check_env_vars venv-3.11 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install -r docs/requirements.txt
	pip install -r requirements.txt
	pip install -r requirements-dev.txt
	pip install .
	cd docs
	mkdir --parents "${OUTPUT_PATH}"
	sphinx-build -b dirhtml source/ "${OUTPUT_PATH}/$@"

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