ID: af31f715467be4505b71c0a86f810a4a9206d4bc
45 lines
—
984B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/borgbackup/borg.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/borg-backup
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
1.2.7: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements.d/development.lock.txt
pip install -r requirements.d/docs.txt
pip install .
cd docs
make clean dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
1.1.18: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements.d/development.lock.txt
pip install -r requirements.d/docs.txt "sphinx < 6"
pip install -e .
cd docs
make clean dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|