ID: 13b434df2f858bf8f1244dccce8574184d0544c8
27 lines
—
528B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/freedomofpress/securedrop-docs.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/securedrop
else
$(error OUTPUT_PATH is undefined)
endif
repository:
git clone ${REPOSITORY} repository
2.5.2-7 2.7.0-1: check_env_vars repository
cd repository
git checkout tags/$@
poetry install
cd docs
poetry run make clean dirhtml
mkdir --parents "${OUTPUT_PATH}"
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|