home » zplus/dokk.git
ID: 1fae84db5318de061f33e69890fa5a5a82202d10
43 lines — 908B — View raw


SHELL = /bin/bash

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

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

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

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

repository:
	git clone ${REPOSITORY} repository

v1.22.7 v1.23.0: check_env_vars venv-3.11 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install -r docs/setuptools.txt
	pip install -r docs/mkdocs-pip-requirements
	mkdir --parents "${OUTPUT_PATH}"
	mkdocs build --site-dir "${OUTPUT_PATH}/$@"

v1.19.5: check_env_vars venv-3.9 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install -r docs/mkdocs-pip-requirements
	mkdir --parents "${OUTPUT_PATH}"
	mkdocs build --site-dir "${OUTPUT_PATH}/$@"

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