summaryrefslogtreecommitdiff
path: root/.vim/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '.vim/Makefile')
-rw-r--r--.vim/Makefile22
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)