diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-09-16 15:38:58 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-09-16 15:38:58 +0100 |
commit | b920816216cb161449dcf03ffe964c667c7b36c2 (patch) | |
tree | 8f666cc88277df541e3364fbc45dcd63acd7a45e /.vim/Makefile | |
parent | 63a9e763db248af694edc3755a288f2bfb73c834 (diff) |
Split install file
Diffstat (limited to '.vim/Makefile')
-rw-r--r-- | .vim/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
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) |