home » zplus/dokk.git
ID: 88fdabef4b22d60fa410a59c61f3866cde268578
79 lines — 2K — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/dgilland/pydash.git

check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/pydash
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

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

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

repository:
	git clone ${REPOSITORY} repository

v7.0.6: check_env_vars venv-3.11 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install .[dev]
	cd docs
	make clean
	make dirhtml
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"

v5.1.2 v6.0.2: check_env_vars venv-3.10 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install .[dev]
	cd docs
	make clean
	make dirhtml
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"

v4.9.3: check_env_vars venv-3.9 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install .[dev]
	cd docs
	make clean
	make dirhtml
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"

v3.4.8: check_env_vars venv-3.5 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install -r requirements-dev.txt "docutils < 0.18"
	pip install .
	cd docs
	make clean
	make dirhtml
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"

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