forked from astrails/dotvim
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
30 lines (21 loc) · 874 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
# find out where ruby is. can override this by providing environment or command
# line variable
RUBY ?= $(shell ./find-ruby.sh)
update: install-vundle bundles compile-command-t
upgrade: upgrade-bundles compile-command-t
install: delete update
delete:
@echo going to remove the bundle directory. press ENTER to continue.
@read something
rm -rf bundle
install-vundle:
test -d bundle/vundle || (mkdir -p bundle && cd bundle && git clone https://github.com/gmarik/vundle.git)
bundles:
vim -u ./bundles.vim +BundleClean! +BundleInstall
cleanup-bundles:
ls bundle | while read b;do (cd bundle/$$b && git clean -f);done
upgrade-bundles: cleanup-bundles
vim -u ./bundles.vim +BundleClean! +BundleInstall!
# only run compilation if bundle installed
compile-command-t:
test ! -d bundle/Command-T || (cd bundle/Command-T/ruby/command-t/ && $(RUBY) extconf.rb && make)