ID: 1596bdf4303bab793d345d59f06fde2177e29fba
30 lines
—
598B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/scrapy/scrapy.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/scrapy
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
2.4.1 2.5.1 2.6.3 2.7.1 2.8.0 2.9.0 2.10.1 2.11.0: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r docs/requirements.txt
pip install .
mkdir --parents "${OUTPUT_PATH}"
sphinx-build -b dirhtml docs/ "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|