home » zplus/dokk.git
ID: 5a60353dc1649e93837f00971f41cd5a1ad8a274
42 lines — 896B — View raw


SHELL = /bin/bash

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

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

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

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

repository:
	git clone ${REPOSITORY} repository

v3.0.3 v3.0.4: check_env_vars venv-3.11 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install .[docs]
	mkdir --parents "${OUTPUT_PATH}"
	sphinx-build -b dirhtml docs/ "${OUTPUT_PATH}/$@"

v1.5.2 v2.0.0 v2.1.0 v2.2.0 v3.0.0 v3.0.1 v3.0.2: check_env_vars venv-3.10 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install .[docs]
	mkdir --parents "${OUTPUT_PATH}"
	sphinx-build -b dirhtml docs/ "${OUTPUT_PATH}/$@"

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