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: