home » zplus/dokk.git
ID: 0f2f44332db072b860fa1fa1a16fb3136965b732
30 lines — 538B — View raw


SHELL = /bin/bash

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

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

venv:
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

3.1.0: 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}/$@"

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