-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (49 loc) · 1.27 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.PHONY: configall clean
exist = $(shell if [ -f $(FILE) ]; then echo "exist"; else echo "notexist"; fi;)
configall:plugin ssh
ifeq (exist,"~/.vim/bundle/LeaderF/")
cd ~/.vim/bundle/LeaderF/ && ./install.sh
endif
@echo "config finish!"
vimrc:colorscheme
@echo "config vimrc"
ln vimrc ~/.vimrc
ln gdbinit ~/.gdbinit
colorscheme:
@echo "config colorscheme"
mkdir -p ~/.vim/colors/
ln private.vim ~/.vim/colors/private.vim
vundle:vimrc git
@echo "config vundle"
mkdir -p ~/.vim/bundle/
ifeq (exist,"~/.vim/bundle/vundle")
git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundle
vim +BundleInstall +qall
else
cd ~/.vim/bundle/vundle && git pull
vim +BundleInstall +qall
endif
plugin:vundle cmake python_dev tmux
@echo "config plugin"
ifeq (exist,"~/.vim/bundle/YouCompleteMe")
cd ~/.vim/bundle/YouCompleteMe && ./install.sh --clang-completer
endif
cmake:
sudo apt-get install cmake -y
python_dev:
sudo apt-get install python-dev -y
git:
sudo apt-get install git -y
tmux:
ifeq (exist,"~/.vim/bundle/vundle")
sudo apt-get install tmux
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
ln tmux.conf ~/.tmux.conf
endif
ssh:
echo "ServerAliveInterval 60" >> ~/.ssh/config
clean:
@echo "clean..."
rm ~/.vimrc
rm ~/.gdbinit
rm ~/.vim/colors/private.vim