home » zplus/dokk.git
ID: 13a12b815243b266b96bf340aae46c33b859f112
30 lines — 593B — View raw


SHELL = /bin/bash

REPOSITORY = https://foss.heptapod.net/openpyxl/openpyxl

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

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

repository:
	hg clone ${REPOSITORY} repository

3.1.2: check_env_vars venv-3.11 repository
	source venv/bin/activate
	cd repository
	hg update $@
	pip install -r requirements.txt sphinx sphinx_rtd_theme
	mkdir --parents "${OUTPUT_PATH}"
	sphinx-build -b dirhtml doc "${OUTPUT_PATH}/$@"

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