SHELL = /bin/bash REPOSITORY = https://github.com/sqlalchemy/sqlalchemy.git check_env_vars: ifdef OUTPUT_PATH OUTPUT_PATH := ${OUTPUT_PATH}/sqlalchemy else $(error OUTPUT_PATH is undefined) endif venv: python3 -m venv venv repository: git clone ${REPOSITORY} repository rel_1_3_24 rel_1_4_50 rel_2_0_23: check_env_vars venv repository source venv/bin/activate cd repository git checkout tags/$@ pip install -r doc/build/requirements.txt # Asyncio "extras" are required for compiling without warnings pip install .[asyncio] cd doc/build/ make clean dirhtml mkdir --parents "${OUTPUT_PATH}" cp --recursive output/dirhtml/ "${OUTPUT_PATH}/$@" rel_1_2_19: check_env_vars venv repository source venv/bin/activate cd repository git checkout tags/$@ pip install -r doc/build/requirements.txt pip install . cd doc/build/ make clean dirhtml mkdir --parents "${OUTPUT_PATH}" cp --recursive output/dirhtml/ "${OUTPUT_PATH}/$@" .ONESHELL: .SUFFIXES: .PHONY: .DELETE_ON_ERROR: