Updated Makefile to remove old symlink or directories
This commit is contained in:
14
Makefile
14
Makefile
@@ -1,14 +1,18 @@
|
||||
all: softlinks
|
||||
vimrepo: softlinks
|
||||
@echo "-----------------------------------------------------------"
|
||||
@echo "Vim and environment"
|
||||
@echo "-----------------------------------------------------------"
|
||||
@echo "Open vim and type :PlugInstall to install extension manager"
|
||||
|
||||
softlinks: dependencies
|
||||
@test -L ${HOME}/.vim || ln -s ${PWD}/.vim ${HOME}/.vim
|
||||
@test -L ${HOME}/.vimrc || ln -s ${PWD}/.vimrc ${HOME}/.vimrc
|
||||
softlinks: apps
|
||||
@test -L ${HOME}/.vim && unlink ${HOME}/.vim || true
|
||||
@(test -d ${HOME}/.vim && mv ${HOME}/.vim ${HOME}/.vim_old) || true
|
||||
@ln -vsf ${PWD}/.vim ${HOME}/.vim
|
||||
@(test -L ${HOME}/.vimrc && unlink ${HOME}/.vimrc) || true
|
||||
@(test -f ${HOME}/.vimrc && mv ${HOME}/.vimrc ${HOME}/.vimrc_old) || true
|
||||
@ln -vsf ${PWD}/.vimrc ${HOME}/.vimrc
|
||||
|
||||
dependencies:
|
||||
apps:
|
||||
@sudo apt install vim
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user