home » zplus/dokk.git
ID: cda9d9a14b3eb8d83dad51832b006d2f1f263780
31 lines — 638B — View raw


SHELL = /bin/bash

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

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

venv:
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

2.0.0 2.1.0: check_env_vars venv repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install -r docs/requirements.txt
	# extra requirements, extracted from noxfile.py
	pip install .[socks,secure,brotli,zstd]
	mkdir --parents "${OUTPUT_PATH}"
	sphinx-build -b dirhtml docs/ "${OUTPUT_PATH}/$@"

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