home » zplus/dokk.git
ID: fa2272344cb90e0571c16f8d28f8182956e3d2c0
31 lines — 723B — View raw


SHELL = /bin/bash

REPOSITORY = https://review.coreboot.org/coreboot.git

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

venv:
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

4.22.01: check_env_vars venv repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	# They don't have a "requirements" file for pip. Dependencies taken from /Documentation/getting_started/writing_documentation.md
	pip install sphinx recommonmark sphinx_rtd_theme sphinxcontrib-ditaa
	cd Documentation
	mkdir --parents "${OUTPUT_PATH}"
	sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@"

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