home » zplus/dokk.git
ID: 5ca123c1e12cc56ae49b983631de5eaf7d5ea3ed
31 lines — 594B — View raw


SHELL = /bin/bash

REPOSITORY = https://bitbucket.org/kleinstein/alakazam.git

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

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

repository:
	git clone ${REPOSITORY} repository

1.2.1 1.3.0: check_env_vars venv-3.9 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install -r docs/requirements.txt
	mkdocs build
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive site "${OUTPUT_PATH}/$@"

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