home » zplus/dokk.git
ID: 544ceec12042f9de516d7741d270db381cee3e57
35 lines — 668B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/mopidy/mopidy.git

check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/mopidy
else
	$(error OUTPUT_PATH is undefined)
endif

venv:
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

# This requires some dependencies before it can compile.
# - libcairo2-dev
# - libgirepository1.0-dev
# - libgraphviz-dev
v3.4.2: check_env_vars venv repository
	mkdir --parents "${OUTPUT_PATH}"
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install .[docs]
	cd docs
	make dirhtml
	cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"

.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR: