home » zplus/dokk.git
ID: 7aad60276cb2a34cdf27b9708088a261399b5b6b
32 lines — 656B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/mozilla/mozilla-django-oidc.git

check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/mozilla-django-oidc
else
	$(error OUTPUT_PATH is undefined)
endif

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

repository:
	git clone ${REPOSITORY} repository

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

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