SHELL = /bin/bash REPOSITORY = https://github.com/benjaminp/six.git check_env_vars: ifdef OUTPUT_PATH OUTPUT_PATH := ${OUTPUT_PATH}/python-six else $(error OUTPUT_PATH is undefined) endif venv: python3 -m venv venv repository: git clone ${REPOSITORY} repository 1.0.0 1.1.0 1.2.0 1.3.0 1.4.1 1.5.2 1.6.1 1.7.3 1.8.0 1.9.0 1.10.0 1.11.0 1.12.0 1.13.0 1.14.0 1.15.0 1.16.0: check_env_vars venv repository source venv/bin/activate cd repository git checkout tags/$@ pip install sphinx mkdir --parents "${OUTPUT_PATH}" sphinx-build -b dirhtml documentation "${OUTPUT_PATH}/$@" .ONESHELL: .SUFFIXES: .PHONY: .DELETE_ON_ERROR: