SHELL = /bin/bash REPOSITORY = https://github.com/sqlalchemy/alembic.git check_env_vars: ifdef OUTPUT_PATH OUTPUT_PATH := ${OUTPUT_PATH}/alembic else $(error OUTPUT_PATH is undefined) endif venv: python3 -m venv venv repository: git clone ${REPOSITORY} repository rel_1_5_0 rel_1_6_0 rel_1_7_0 rel_1_8_0 rel_1_9_0 rel_1_10_0 rel_1_11_0 rel_1_12_0 rel_1_13_0: check_env_vars venv repository mkdir --parents "${OUTPUT_PATH}" source venv/bin/activate cd repository git checkout tags/$@ pip install . pip install -r docs/build/requirements.txt cd docs/build/ make dirhtml cp --recursive output/dirhtml "${OUTPUT_PATH}/$@" .ONESHELL: .SUFFIXES: .PHONY: .DELETE_ON_ERROR: