SHELL = /bin/bash REPOSITORY = https://github.com/uxsolutions/bootstrap-datepicker.git check_env_vars: ifdef OUTPUT_PATH OUTPUT_PATH := ${OUTPUT_PATH}/bootstrap-datepicker else $(error OUTPUT_PATH is undefined) endif venv: python3 -m venv venv repository: git clone ${REPOSITORY} repository v1.4.1 v1.5.1 v1.6.0 v1.6.4 v1.7.0 v1.7.1 v1.8.0 v1.9.0 v1.10.0: check_env_vars venv repository mkdir --parents "${OUTPUT_PATH}" source venv/bin/activate cd repository git checkout tags/$@ pip install -r docs/requirements.txt cd docs make dirhtml cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@" .ONESHELL: .SUFFIXES: .PHONY: .DELETE_ON_ERROR: