home » zplus/dokk.git
ID: 820512388180e724e3d4dbad4a1fd6fb774dc5ff
31 lines — 628B — View raw


SHELL = /bin/bash

REPOSITORY = http://hg.code.sf.net/p/ruamel-yaml/code

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

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

repository:
	hg clone ${REPOSITORY} repository

0.17.40 0.18.6: check_env_vars venv-3.11 repository
	source venv/bin/activate
	cd repository
	hg update $@
	pip install .[docs] ryd mkdocs
	ryd convert --generate-mkdocs-config mkdocs.yaml _doc
	mkdir --parents "${OUTPUT_PATH}"
	mkdocs build --site-dir "${OUTPUT_PATH}/$@"

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