home » zplus/dokk.git
ID: 2c7e47ab78961cbce0ac4d23b6e30f183f6cc82c
39 lines — 824B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/Pylons/pyramid_jinja2.git

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

venv:
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

2.9.2 2.10: check_env_vars venv repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install .[docs]
	cd docs
	mkdir --parents "${OUTPUT_PATH}"
	sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@"

1.10 2.0.2 2.1 2.2 2.3.3 2.4 2.5 2.6.2 2.7 2.8: check_env_vars venv repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install .[docs] "jinja2 < 3.1"
	cd docs
	mkdir --parents "${OUTPUT_PATH}"
	sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@"

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