home » zplus/dokk.git
ID: 4efa34176af75ea1c6fa7f094e410ad25ab3c200
32 lines — 580B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/schollii/pypubsub.git

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

venv:
	python3 -m venv venv

repository:
	git clone ${REPOSITORY} repository

v3.3.0 v4.0.0 v4.0.3: check_env_vars venv repository
	mkdir --parents "${OUTPUT_PATH}"
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install .
	pip install sphinx
	cd docs
	make dirhtml
	cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"

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