SHELL = /bin/bash REPOSITORY = http://hg.code.sf.net/p/ruamel-yaml/code check_env_vars: ifdef OUTPUT_PATH OUTPUT_PATH := ${OUTPUT_PATH}/ruamel.yaml else $(error OUTPUT_PATH is undefined) endif venv-3.11: export PYENV_VERSION=3.11 python3 -m venv venv repository: hg clone ${REPOSITORY} repository 0.17.40 0.18.6: check_env_vars venv-3.11 repository source venv/bin/activate cd repository hg update $@ pip install .[docs] ryd mkdocs ryd convert --generate-mkdocs-config mkdocs.yaml _doc mkdir --parents "${OUTPUT_PATH}" mkdocs build --site-dir "${OUTPUT_PATH}/$@" .ONESHELL: .SUFFIXES: .PHONY: .DELETE_ON_ERROR: