SHELL = /bin/bash REPOSITORY = https://github.com/open-mmlab/mmaction2.git check_env_vars: ifdef OUTPUT_PATH OUTPUT_PATH := ${OUTPUT_PATH}/mmaction2 else $(error OUTPUT_PATH is undefined) endif venv-3.9: export PYENV_VERSION=3.9 python3 -m venv venv repository: git clone ${REPOSITORY} repository v1.2.0: check_env_vars venv-3.9 repository source venv/bin/activate cd repository git checkout tags/$@ pip install -r requirements/docs.txt pip install -r requirements/readthedocs.txt cd docs mkdir --parents "${OUTPUT_PATH}/en" mkdir --parents "${OUTPUT_PATH}/zh_cn" cd en make clean make dirhtml cp --recursive _build/dirhtml "${OUTPUT_PATH}/en/$@" cd ../zh_cn make clean make dirhtml cp --recursive _build/dirhtml "${OUTPUT_PATH}/zh_cn/$@" .ONESHELL: .SUFFIXES: .PHONY: .DELETE_ON_ERROR: