-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMakefile
43 lines (28 loc) · 852 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
export VIM_DIR ?= dist
configure:
@bin/generate.sh
vconfigure:
@bin/generate.sh -v
reconfigure:
@bin/generate.sh -f
edit: ${VIM_DIR}/.config
@vim ${VIM_DIR}/.config
install: configure
vim +'call dein#install()'
clean:
rm -rf ${VIM_DIR}/dein
reinstall: clean configure
update:
vim +'call dein#update()'
.PHONY: configure reconfigure install clean reinstall update
YCM_DIR = ${VIM_DIR}/dein/repos/github.com/Valloric/YouCompleteMe
${YCM_DIR}:
mkdir -p ${VIM_DIR}/dein/repos/github.com/Valloric
cd ${VIM_DIR}/dein/repos/github.com/Valloric
git clone https://github.com/Valloric/YouCompleteMe.git YouCompleteMe
ycm-git: ${YCM_DIR}
cd $< && git submodule update --init --recursive
ycm-install: ycm-git
cd ${YCM_DIR} && ./install.py --clang-completer --tern-completer
completion: ycm-install
.PHONY: ycm-git ycm-install completion