.PHONY: all setup BASH := /bin/bash conda_env_prefix := $(HOME)/.conda/envs/uds-scripts all: setup setup: ~/.inputrc ~/.bashrc ~/.bash_aliases ~/.gitconfig $(conda_env_prefix) ~/.inputrc: setup-account.sh @./$< upd_inputrc @touch $@ ~/.bashrc: setup-account.sh @./$< upd_bashrc_history @./$< upd_bashrc_git_completions @./$< upd_bashrc_conda_init @./$< upd_bashrc_ustore_vars @touch $@ ~/.bash_aliases: setup-account.sh @./$< upd_bash_aliases @touch $@ ~/.ipython/profile_default/startup/50-ustor-vars.py: setup-account.sh @./$< upd_ipython_ustore_vars @touch $@ ~/.gitconfig: setup-account.sh @./$< upd_git_lg @./$< upd_git_user @touch $@ $(conda_env_prefix): setup-account.sh environment.yml @./$< conda_create_env # Command to print all the other targets, from https://stackoverflow.com/a/26339924 help: @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'