forked from ecarter/vim-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (23 loc) · 847 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
USER_HOME=$(HOME)
install: clean janus link
janus:
@echo "installing janus..."
@curl -Lo- https://bit.ly/janus-bootstrap | bash
link:
@echo "linking files..."
@ln -fs `pwd`/plugins/ $(USER_HOME)/.janus
@ln -fs `pwd`/vimrc $(USER_HOME)/.vimrc.after
@ln -fs `pwd`/gvimrc $(USER_HOME)/.gvimrc.after
update:
@echo "updating dependencies..."
@git submodule -q foreach git pull -q origin master
@cd $(USER_HOME)/.vim; rake
backup:
@echo "backing up..."
@cp -f $(USER_HOME)/.gvimrc.after $(USER_HOME)/.gvimrc.after.backed 2>/dev/null || true
@cp -f $(USER_HOME)/.vimrc.after $(USER_HOME)/.vimrc.after.backed 2>/dev/null || true
@cp -r $(USER_HOME)/.janus $(USER_HOME)/.janus.backed 2>/dev/null || true
clean:
@make backup
@rm -rf $(USER_HOME)/.gvimrc.after $(USER_HOME)/.gvimrc.after $(USER_HOME)/.janus
.PHONY: install link update