Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Makefile 1.01 KiB
Newer Older
conda_env_prefix := $(HOME)/.conda/envs/uds-scripts
setup: ~/.inputrc ~/.bashrc ~/.bash_aliases ~/.gitconfig $(conda_env_prefix)
~/.inputrc: setup-account.sh
~/.bashrc: setup-account.sh
	@./$< upd_bashrc_history
	@./$< upd_bashrc_git_completions
	@./$< upd_bashrc_conda_init
	@./$< upd_bashrc_ustore_vars
~/.bash_aliases: setup-account.sh
~/.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
$(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 '^$@$$'