SHELL = /bin/bash REPOSITORY = https://github.com/autofac/Documentation.git check_env_vars: ifdef OUTPUT_PATH OUTPUT_PATH := ${OUTPUT_PATH}/autofac else $(error OUTPUT_PATH is undefined) endif venv: python3 -m venv venv repository: git clone ${REPOSITORY} repository v6.0.0 v7.0.0: check_env_vars venv repository mkdir --parents "${OUTPUT_PATH}" source venv/bin/activate cd repository git checkout tags/$@ pip install -r docs/requirements.txt cd docs make dirhtml cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@" v4.0.0 v4.9.4 v5.2.0: check_env_vars venv repository mkdir --parents "${OUTPUT_PATH}" source venv/bin/activate cd repository git checkout tags/$@ pip install sphinx cd docs sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@" v3.5.2: check_env_vars venv repository mkdir --parents "${OUTPUT_PATH}" source venv/bin/activate cd repository git checkout tags/$@ pip install sphinx sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@" .ONESHELL: .SUFFIXES: .PHONY: .DELETE_ON_ERROR: