home » zplus/dokk.git
ID: e24834a7528d907000f8594786124ccb2473bccb
31 lines — 607B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/psf/requests.git

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

venv:
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

v2.26.0 v2.27.0 v2.28.0 v2.29.0 v2.30.0 v2.31.0: check_env_vars venv repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	cd docs
	pip install -r requirements.txt
	make dirhtml
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"

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