home » zplus/dokk.git
ID: 5055369e8e44c31f0690ef82a7e7971b448d8670
29 lines — 626B — View raw


SHELL = /bin/bash

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

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

venv:
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

v2.6.2 v3.10.0 v3.11.1 v3.12.1 v3.13.2 v3.14.0 v3.15.0 v3.16.1 v3.17.6 v3.18.4 v3.19.0 v3.19.1 v3.19.2: check_env_vars venv repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install sphinx
	mkdir --parents "${OUTPUT_PATH}"
	sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@"

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