SHELL = /bin/bash REPOSITORY = https://github.com/inducer/pycuda.git check_env_vars: ifdef OUTPUT_PATH OUTPUT_PATH := ${OUTPUT_PATH}/pycuda else $(error OUTPUT_PATH is undefined) endif venv: python3 -m venv venv repository: git clone ${REPOSITORY} repository v2022.2.2 v2023.1: check_env_vars venv repository mkdir --parents "${OUTPUT_PATH}" source venv/bin/activate cd repository git checkout tags/$@ # Manually install dependencies because this repo doesn't have a requirements.txt file pip install "sphinx < 8" sphinx-copybutton furo cd doc make dirhtml cp --recursive _build/dirhtml "${OUTPUT_PATH}/$@" v2015.1.3 v2016.1.2 v2017.1.1 v2018.1.1 v2019.1.2 v2020.1 v2021.1: check_env_vars venv repository mkdir --parents "${OUTPUT_PATH}" source venv/bin/activate cd repository git checkout tags/$@ # Manually install dependencies because this repo doesn't have a requirements.txt file pip install "sphinx < 8" sphinx-copybutton furo cd doc sphinx-build -b dirhtml source/ "${OUTPUT_PATH}/$@" .ONESHELL: .SUFFIXES: .PHONY: .DELETE_ON_ERROR: