forked from astrails/dotvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (39 loc) · 1.43 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
.PHONY: help delete
default: help
delete:
@echo going to remove the bundle directory. press ENTER to continue.
@read something
rm -rf bundle
PKGM := autoload/plug.vim
${PKGM}:
@echo
@echo
rm -rf bundle/vundle
@echo "Install to \"$(PKGM)\"..."
curl -fLo $(PKGM) --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
@echo
@echo '**************************************************************************'
@echo '* DONE! You might need to upgrade your bundles.vim to the new format. *'
@echo '* see https://github.com/junegunn/vim-plug *'
@echo '**************************************************************************'
@echo
cleanup:
vim -u bundles.vim +PlugClean +PlugInstall
.PHONY: install reinstall
install: ${PKGM} cleanup
reinstall: delete install
.PHONY: edit-bundles edit
edit-bundles:
vim bundles.vim
edit: edit-bundles install
update-bundles: ${PKGM}
vim -u bundles.vim +PlugUpgrade +PlugClean +PlugUpdate
update: update-bundles
.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'