ID: b31cc51beb2c16d3bfa40468156200e87c428f00
30 lines
—
579B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/PyCQA/flake8.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/flake8
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
5.0.4 6.0.0 6.1.0: check_env_vars venv repository
mkdir --parents "${OUTPUT_PATH}"
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r docs/source/requirements.txt
pip install .
sphinx-build -b dirhtml docs/source/ "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|