ID: 24c4a437daab5cb519e23326e7a3735c4301fc56
32 lines
—
735B —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/SoCo/SoCo.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/sonos-controller
else
$(error OUTPUT_PATH is undefined)
endif
venv:
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
v0.12 v0.13 v0.14 v0.15 v0.16 v0.17 v0.18.1 v0.19 v0.20 v0.21.3 v0.22.6 v0.23.3 v0.24.1 v0.25.3 v0.26.4 v0.27.1 v0.28.1 v0.29.1 v0.30.0: check_env_vars venv repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements.txt
pip install -r requirements-dev.txt
mkdir --parents "${OUTPUT_PATH}"
cd doc
make clean dirhtml
cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|