home » zplus/dokk.git
ID: 59185241c1dd23889a3c054ac65347fee8c2a0c3
27 lines — 518B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/vcs-python/vcspull.git

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

repository:
	git clone ${REPOSITORY} repository

v1.26.0: check_env_vars repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	poetry install
	cd docs
	mkdir --parents "${OUTPUT_PATH}"
	poetry run sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@"

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