SHELL = /bin/bash REPOSITORY = https://github.com/rdflib/rdflib.git check_env_vars: ifdef OUTPUT_PATH OUTPUT_PATH := ${OUTPUT_PATH}/rdflib else $(error OUTPUT_PATH is undefined) endif repository: git clone ${REPOSITORY} repository 7.0.0: check_env_vars repository cd repository git checkout tags/$@ poetry install cd docs poetry run make clean dirhtml mkdir --parents "${OUTPUT_PATH}" cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@" .ONESHELL: .SUFFIXES: .PHONY: .DELETE_ON_ERROR: