define HELP

Commands:
  help               print this help text
  setup_conda        setup_conda
  setup_requirements install additional requirements
  run                run navigator
  test               run unit tests

endef
export HELP

help:
	@echo "$${HELP}"

setup_conda:
	@if [ -z "$${CONDA_SHLVL:+x}" ]; then echo "Conda is not installed." && exit 1; fi
	@conda create -y -n anav python=3.8
	@conda install -y -n anav --file requirements.txt
	@chmod +x hooks/pre-commit
	@ln -sf ../../hooks/pre-commit .git/hooks/pre-commit
	@echo "\n\nConda environment has been created. To activate run \"conda activate anav\"."

setup_requirements:
	@pip install pytest-qt pytest-cov libsass yapf==0.17

run:
	@python bootstrap.py

test:
	@python runtests.py