home » zplus/dokk.git
ID: 9ba2fda8b2c397b777d24ec3f5d692d2ed62a7d4
46 lines — 930B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/aio-libs/aiopg.git

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

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

repository:
	git clone ${REPOSITORY} repository

v1.4.0: check_env_vars venv-3.7 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install -r requirements.txt
	pip install .
	cd docs
	make clean
	make dirhtml
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"

v0.16.0: check_env_vars venv-3.7 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install -r requirements.txt "jinja2 < 3" "markupsafe == 2.0.1"
	pip install .
	cd docs
	make clean
	make dirhtml
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@"

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