home » zplus/dokk.git
ID: e50a53a31b70c7633d3d1079a632ed477a857f2c
32 lines — 780B — View raw


SHELL = /bin/bash

REPOSITORY = https://gitlab.freedesktop.org/mesa/mesa.git

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

venv-3.11:
	export PYENV_VERSION=3.11
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

# build dependencies taken from docs/submittingpatches.rst
# requires system packages: coreutils graphviz clang-dev python3-clang musl-dev linux-headers
mesa-23.3.6: check_env_vars venv-3.11 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install "sphinx == 5.1" "mako == 1.2" "hawkmoth == 0.16" clang breathe
	mkdir --parents "${OUTPUT_PATH}"
	sphinx-build -b dirhtml docs "${OUTPUT_PATH}/$@"

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