home » zplus/dokk.git
ID: 0bcaf648884db8c00579484afdada33b2893c722
46 lines — 883B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/mozilla/dennis.git

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

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

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

repository:
	git clone ${REPOSITORY} repository

v1.1.0: check_env_vars venv-3.10 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install sphinx
	cd docs
	make dirhtml
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"

v0.9: check_env_vars venv-3.5 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install sphinx
	cd docs
	make dirhtml
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"

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