ID: 584301e4454cbc4454f20c09a80396258cbe1e2d
46 lines
—
955B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/mozilla/bedrock.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/mozilla-bedrock
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.11:
export PYENV_VERSION=3.11
python3 -m venv venv
venv-3.9:
export PYENV_VERSION=3.9
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
2024-05-22: check_env_vars venv-3.11 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements/docs.txt
cd docs
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
2021-12-22 2022-12-20 2023-12-14.1: check_env_vars venv-3.9 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements/docs.txt
cd docs
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|