home » zplus/dokk.git
ID: ff403855eb1ca107c63125385f65582d6f46dd3c
48 lines — 996B — View raw


SHELL = /bin/bash

REPOSITORY = https://github.com/fsspec/s3fs.git

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

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

repository:
	git clone ${REPOSITORY} repository

2023.12.2: check_env_vars venv-3.9 repository
	source venv/bin/activate
	cd repository
	git checkout tags/$@
	pip install -r requirements.txt
	pip install .
	pip install botocore "docutils < 0.17" sphinx sphinx_rtd_theme
	cd docs
	make clean
	make dirhtml
	mkdir --parents "${OUTPUT_PATH}"
	cp --recursive build/dirhtml "${OUTPUT_PATH}/$@"

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

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