ID: 4f84ab1b695b85acf407116c0a1fc077da2d8307
58 lines
—
2K —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/mozilla/addons-server.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/mozilla-addons-server
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.11:
export PYENV_VERSION=3.11
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
# There is a requirements file in /requirements/dev.txt but it's not working. When doing
# "pip install -r requirements/dev.txt" it always gives a --required-hashes error. For
# this reasons the dependencies are installed manually
2024.05.30: check_env_vars venv-3.11 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install sphinx sphinx-rtd-theme sphinxcontrib-httpdomain myst-parser
cd docs
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
2023.12.14: 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}/$@"
# There is a requirements file in /requirements/docs.txt but it's not working. When doing
# "pip install -r requirements/docs.txt" it always gives a --required-hashes error. For
# this reasons the dependencies are installed manually
2021.12.09-1 2022.12.08-2: check_env_vars venv-3.11 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install sphinx sphinx-rtd-theme sphinxcontrib-httpdomain
cd docs
make dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|