home » zplus/dokk.git
ID: 92b10fe0f905f12132b4eb07b6fdae699ea40d30
31 lines — 585B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/viblo/pymunk.git

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

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

repository:
	git clone ${REPOSITORY} repository

6.6.0: check_env_vars venv-3.11 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install -r docs/requirements.txt
	cd docs/src/
	mkdir --parents "${OUTPUT_PATH}"
	sphinx-build -b dirhtml . "${OUTPUT_PATH}/$@"

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