ID: 5da4f53d5fb2d179e20b9be7942b3a3e21631886
42 lines
—
910B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/robotpy/robotpy-docs.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/robotpy
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.11:
export PYENV_VERSION=3.11
python3 -m venv venv
venv-3.10:
export PYENV_VERSION=3.10
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
2024.0: check_env_vars venv-3.11 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements.txt
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@"
2017.1.4 2018.0.11 2019.1.2 2020.1.7 2021.6 2022.2 2023.5: check_env_vars venv-3.10 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements.txt
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|