-
Notifications
You must be signed in to change notification settings - Fork 131
/
Makefile
74 lines (55 loc) · 2.31 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# find out where ruby is. can override this by providing environment or command
# line variable
RUBY ?= $(shell ./find-ruby.sh)
.PHONY: help delete
default: help
delete:
@echo going to remove the bundle directory. press ENTER to continue.
@read something
rm -rf bundle
NEOBUNDLE := bundle/neobundle.vim
${NEOBUNDLE}:
@echo
@echo
@echo '**************************************************************'
@echo '* UPGRADING vundle => neobundle *'
@echo '* *'
@echo '* Your existing vundle repository will be DELETED!!!! *'
@echo '* press ENTER to continue, Ctrl-C to stop *'
@echo '**************************************************************'
@read a
rm -rf bundle/vundle
mkdir -p bundle && cd bundle && git clone https://github.com/Shougo/neobundle.vim.git
@echo
@echo '**************************************************************************'
@echo '* DONE! You might need to upgrade your bundles.vim to the new format. *'
@echo '* see https://github.com/Shougo/neobundle.vim *'
@echo '**************************************************************************'
@echo
.PHONY: cleanup compile-command-t compile
cleanup:
vim -u bundles.vim +NeoBundleClean +NeoBundleCheck +NeoBundleDocs
compile-command-t:
test ! -d bundle/Command-T || (cd bundle/Command-T/ruby/command-t/ && $(RUBY) extconf.rb && make)
compile: compile-command-t
.PHONY: install reinstall
install: ${NEOBUNDLE} cleanup compile
reinstall: delete install
.PHONY: edit-bundles edit
edit-bundles:
vim bundles.vim
edit: edit-bundles install
.PHONY: cleanup-bundles update-bundles update
cleanup-bundles:
ls bundle | while read b;do (cd bundle/$$b && git clean -f);done
update-bundles: ${NEOBUNDLE}
vim -u bundles.vim +NeoBundleUpdate
update: cleanup-bundles update-bundles install
.PHONY: help
help:
@echo COMMON:
@echo 'make help (default) print this message'
@echo 'make install make sure all bundles installed and compiled'
@echo 'make reinstall [DANGEROUS!] - remove bundles and reinstall'
@echo 'make edit edit bundles file and install/refresh bundles'
@echo 'make update update installed bundles'