home » zplus/dokk.git
ID: cc2ec46aed2c08f11c46f758f72dd9dd1842504a
32 lines — 596B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/mattpitkin/psrqpy.git

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

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

repository:
	git clone ${REPOSITORY} repository

v1.1.8 v1.2.7: check_env_vars venv-3.8 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install .[docs]
	cd docs
	make clean dirhtml
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive build/dirhtml "${OUTPUT_PATH}/$@"

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