From b920816216cb161449dcf03ffe964c667c7b36c2 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 16 Sep 2015 15:38:58 +0100 Subject: Split install file --- .vim/Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .vim/Makefile (limited to '.vim/Makefile') diff --git a/.vim/Makefile b/.vim/Makefile new file mode 100644 index 0000000..3c5fc67 --- /dev/null +++ b/.vim/Makefile @@ -0,0 +1,22 @@ +HOME=/home/urbain +TARGETS=$(addprefix $(HOME)/,.vimrc .nvimrc .vim .nvim .vim/vimundo) + +all : $(TARGETS) + +$(HOME)/.vimrc : + rm -f $@ && ln -s $(PWD)/vimrc $@ + +$(HOME)/.nvimrc : + rm -f $@ && ln -s $(PWD)/vimrc $@ + +$(HOME)/.vim : + rm -f $@ && ln -s $(PWD) $@ + +$(HOME)/.nvim : + rm -f $@ && ln -s $(PWD) $@ + +$(HOME)/.vim/vimundo : + mkdir -p $@ + +clean : + rm -f $(TARGETS) -- cgit v1.2.3