ID: 7e3e7c0f3f9c43a7efaf7fb84ab7e1816b150ca8
30 lines
—
652B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/mozilla/addons-frontend.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/mozilla-addons-frontend
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.11:
export PYENV_VERSION=3.11
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
2018.12.18-2 2019.12.12 2020.12.10 2021.12.09 2022.12.08 2023.12.14 2024.05.30: check_env_vars venv-3.11 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install mkdocs
mkdir --parents "${OUTPUT_PATH}"
mkdocs build --site-dir "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|