SHELL = /bin/bash REPOSITORY = https://github.com/psycopg/psycopg.git check_env_vars: ifdef OUTPUT_PATH OUTPUT_PATH := ${OUTPUT_PATH}/psycopg else $(error OUTPUT_PATH is undefined) endif venv: python3 -m venv venv repository: git clone ${REPOSITORY} repository 3.0.18 3.1.16: check_env_vars venv repository mkdir --parents "${OUTPUT_PATH}" source venv/bin/activate cd repository git checkout tags/$@ pip install ./psycopg[dev,docs] pip install ./psycopg_pool pip install ./psycopg_c cd docs make clean dirhtml cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@" .ONESHELL: .SUFFIXES: .PHONY: .DELETE_ON_ERROR: