SHELL = /bin/bash REPOSITORY = https://github.com/aerleon/aerleon.git check_env_vars: ifdef OUTPUT_PATH OUTPUT_PATH := ${OUTPUT_PATH}/aerleon else $(error OUTPUT_PATH is undefined) endif venv-3.10: export PYENV_VERSION=3.10 python3 -m venv venv repository: git clone ${REPOSITORY} repository 1.0.0 1.1.0 1.2.3 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0 1.8.0 1.9.0: check_env_vars venv-3.10 repository source venv/bin/activate cd repository git checkout tags/$@ pip install -r docs/requirements.txt # Upgrade mkdocstrings version beacuse the one in requirements.txt doesn't work pip install "mkdocstrings == 0.25.1" "mkdocstrings-python == 1.10.3" mkdir --parents "${OUTPUT_PATH}" mkdocs build --site-dir "${OUTPUT_PATH}/$@" .ONESHELL: .SUFFIXES: .PHONY: .DELETE_ON_ERROR: