VIM := $(shell command -v vim 2>/dev/null) NVIM := $(shell command -v nvim 2>/dev/null) ZCONFS := zsh/.zshenv SCONFS := sh/profile all: install: install-zshconfigs install-shconfigs vimplug-vim vimplug-nvim install-zshconfigs: $(ZCONFS) @echo "Installing zsh conf files..." @echo ".zshenv..." @ln -sf `pwd`/zsh/.zshenv ~/.zshenv @echo "Done." install-shconfigs: $(SCONFS) @echo "Installing sh conf files..." @echo ".profile..." @ln -sf `pwd`/sh/profile ~/.profile @echo "Done." vimplug-vim: installers/vimplug_vim.sh ifdef VIM @echo "Installing vim-plug for vim..." @$(shell installers/vimplug_vim.sh) @echo "Done." else @echo "vim not installed." endif vimplug-nvim: installers/vimplug_nvim.sh ifdef NVIM @echo "Installing vim-plug for nvim..." @$(shell installers/vimplug_nvim.sh) @echo "Done." else @echo "nvim not installed." endif