-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
94 lines (68 loc) · 1.7 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
SHELL = /bin/sh
.SUFFIXES:
.PHONY: all
all: ~/.vimrc ~/.bashrc ~/.bash_profile ~/.zshrc ~/.shellrc ~/.zprofile \
~/.profile ~/.lynxrc ~/.tmux.conf ~/.gitconfig ~/.gitignore ~/.i3/config \
~/.xinitrc ~/.xsession ~/.ycm_extra_conf.py \
~/Makefile scripts vim-dirs bin-dirs
~/.vim-plugins/update: ~/.dotfiles/update-vim-plugins
cp "$<" "$@"
~/.zsh-plugins/update: ~/.dotfiles/update-zsh-plugins
cp "$<" "$@"
.PHONY: vim-plugins
vim-plugins: ~/.vim-plugins/update
~/.vim-plugins/update
.PHONY: zsh-plugins
zsh-plugins: ~/.zsh-plugins/update
~/.zsh-plugins/update
.PHONY: vim-dirs
vim-dirs:
mkdir -p ~/.vim/backup
.PHONY: bin-dirs
bin-dirs:
mkdir -p ~/bin
mkdir -p ~/usr/bin
mkdir -p ~/.gem/bin
mkdir -p ~/.cabal/bin
mkdir -p ~/lib
# To update tmux plugins, do PREFIX + U
~/.vimrc: ~/.dotfiles/.vimrc
cp "$<" "$@"
~/.bashrc: ~/.dotfiles/.bashrc
cp "$<" "$@"
~/.bash_profile: ~/.dotfiles/.bash_profile
cp "$<" "$@"
~/.zshrc: ~/.dotfiles/.zshrc
cp "$<" "$@"
~/.shellrc: ~/.dotfiles/.shellrc
cp "$<" "$@"
~/.zprofile: ~/.dotfiles/.zprofile
cp "$<" "$@"
~/.profile: ~/.dotfiles/.profile
cp "$<" "$@"
~/.lynxrc: ~/.dotfiles/.lynxrc
cp "$<" "$@"
~/.tmux.conf: ~/.dotfiles/.tmux.conf
cp "$<" "$@"
~/.gitconfig: ~/.dotfiles/.gitconfig
cp "$<" "$@"
~/.gitignore: ~/.dotfiles/.gitignore
cp "$<" "$@"
~/.i3/config: ~/.dotfiles/.i3/config
mkdir -p ~/.i3
cp "$<" "$@"
~/.xinitrc: ~/.dotfiles/.xinitrc
cp "$<" "$@"
~/.xsession: ~/.dotfiles/.xsession
cp "$<" "$@"
~/.ycm_extra_conf.py: ~/.dotfiles/.ycm_extra_conf.py
cp "$<" "$@"
~/Makefile: ~/.dotfiles/Makefile
cp "$<" "$@"
.PHONY: scripts
scripts:
! [ -d ~/scripts ] || $(MAKE) -C ~/scripts
.PHONY: clean
clean:
rm -f ~/dotfiles.*
safe-global-clean