-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (21 loc) · 643 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
SHELL:=/bin/bash
master=git://github.com/oxyc/vimrc.git
DEST:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
all: update
~/.vimrc:
@ln -s $(DEST)/vimrc ~/.vimrc
~/.config/nvim/init.vim:
@mkdir -p ~/.config/nvim
@ln -s $(DEST)/vimrc ~/.config/nvim/init.vim
install: install-vim
install-vim: ~/.vimrc
@vim --not-a-term "+silent call dein#install()" +qall
install-nvim: ~/.config/nvim/init.vim
@nvim "+silent call dein#install()" +UpdateRemotePlugins +qall
update:
@pushd $(DEST)
@git pull
@git submodule foreach git pull origin master
@vim --not-a-term "+silent dein#update()" +qall
@popd
.PHONY: all install update