home » zplus/dokk.git
ID: a6866da023c3e21b4a386da366597a18cfcf1fa3
28 lines — 535B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/sphinx-doc/alabaster.git

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

venv:
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

0.7.10 0.7.11 0.7.12 0.7.13: check_env_vars venv repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install -r dev-requirements.txt
	sphinx-build -b dirhtml docs "${OUTPUT_PATH}/$@"

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