ID: 3a36be583201eaf621e6bcb1c12aad3fc467549e
42 lines
—
897B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/django/django.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/django
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.8:
export PYENV_VERSION=3.8
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
3.2.23 4.2.8 5.0: check_env_vars venv-3.8 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r docs/requirements.txt
cd docs
make clean dirhtml
mkdir --parents "${OUTPUT_PATH}/en"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/en/$@"
2.2.28: check_env_vars venv-3.8 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r docs/requirements.txt "sphinx < 6"
cd docs
make clean dirhtml
mkdir --parents "${OUTPUT_PATH}/en"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/en/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|