home » zplus/dokk.git
ID: bf15c1bee51a8ea4694fee1fc82f3aaddfcf0093
46 lines — 999B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/aio-libs/aioftp.git

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

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

repository:
	git clone ${REPOSITORY} repository

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

0.9.0 0.10.0 0.10.1 0.11.1 0.12.0 0.13.0 0.14.0 0.15.0 0.16.1 0.17.2 0.18.1 0.19.0 0.20.0 0.21.4: check_env_vars venv-3.11 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install -r doc-requirements.txt
	pip install .
	cd docs
	make clean
	make dirhtml
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"

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