SHELL = /bin/bash REPOSITORY = https://github.com/TACC/Lmod.git check_env_vars: ifdef OUTPUT_PATH OUTPUT_PATH := ${OUTPUT_PATH}/lmod else $(error OUTPUT_PATH is undefined) endif venv: python3 -m venv venv repository: git clone ${REPOSITORY} repository 8.6 8.7: check_env_vars venv repository mkdir --parents "${OUTPUT_PATH}" source venv/bin/activate cd repository git checkout tags/$@ pip install -r docs/requirements.txt # Upgrade sphinx because it's pinned to v1 in the requirements, but it isn't compiling. pip install --upgrade sphinx cd docs make dirhtml cp --recursive build/dirhtml "${OUTPUT_PATH}/$@" 6.6 7.8: check_env_vars venv repository mkdir --parents "${OUTPUT_PATH}" source venv/bin/activate cd repository git checkout tags/$@ pip install sphinx cd docs make dirhtml cp --recursive build/dirhtml "${OUTPUT_PATH}/$@" .ONESHELL: .SUFFIXES: .PHONY: .DELETE_ON_ERROR: