-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
124 lines (92 loc) · 2.4 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
HOME=$(shell echo $$HOME)
TARGETS= $(HOME)/.gitconfig \
$(HOME)/.vim \
$(HOME)/.nvim \
$(HOME)/.tmux.conf\
$(HOME)/.vimrc \
$(HOME)/.nvimrc \
$(HOME)/.config/nvim \
$(HOME)/.config/nvim/init.vim \
$(HOME)/.bashrc \
$(HOME)/.bash_profile \
$(HOME)/.editrc \
$(HOME)/.inputrc \
$(HOME)/.zshrc \
$(HOME)/.gemrc \
$(HOME)/.ackrc \
$(HOME)/bin/gitvi \
$(HOME)/bin/changedfiles \
$(HOME)/bin/git2cl \
$(HOME)/bin/xmlpp \
$(HOME)/bin/xmldiff \
$(HOME)/.ctags \
$(HOME)/.Xmodmap \
$(HOME)/.xterm-256color.ti \
$(HOME)/.config \
$(HOME)/.config/kitty \
$(HOME)/.config/kitty/kitty.conf \
$(HOME)/Brewfile \
$(HOME)/com.googlecode.iterm2.plist
$(HOME)/com.googlecode.iterm2.plist: com.googlecode.iterm2.plist
cp com.googlecode.iterm2.plist $@
$(HOME)/.gitconfig: gitconfig
cp gitconfig $@
$(HOME)/.vim: vim
cp -R vim $@
$(HOME)/.nvim: vim
cp -R vim $@
$(HOME)/.tmux.conf: tmux.conf
cp tmux.conf $@
$(HOME)/.vimrc: vimrc
cp vimrc $@
$(HOME)/.nvimrc: vimrc
cp vimrc $@
$(HOME)/.config:
mkdir -p $@
$(HOME)/.config/kitty:
mkdir -p $@
$(HOME)/.config/nvim: $(HOME)/.config $(HOME)/.vim
ln -f -s $(HOME)/.vim $@
$(HOME)/.config/nvim/init.vim: $(HOME)/.config $(HOME)/.config/nvim $(HOME)/.vimrc
ln -f -s $(HOME)/.vimrc $@
$(HOME)/.zshrc: zshrc
cp zshrc $@
$(HOME)/.bashrc: bashrc
cp bashrc $@
$(HOME)/.bash_profile: bash_profile
cp bash_profile $@
$(HOME)/.inputrc: inputrc
cp inputrc $@
$(HOME)/.editrc: editrc
cp editrc $@
$(HOME)/.Xmodmap: Xmodmap
cp Xmodmap $@
$(HOME)/.ackrc: ackrc
cp ackrc $@
$(HOME)/.gemrc: gemrc
cp gemrc $@
$(HOME)/bin/gitvi: bin/gitvi
cp bin/gitvi $(HOME)/bin/
$(HOME)/bin/changedfiles: bin/changedfiles
cp bin/changedfiles $(HOME)/bin/
$(HOME)/bin/git2cl: bin/git2cl
cp bin/git2cl $(HOME)/bin/
$(HOME)/bin/xmlpp: bin/xmlpp
cp bin/xmlpp $(HOME)/bin/
$(HOME)/bin/xmldiff: bin/xmldiff
cp bin/xmldiff $(HOME)/bin/
$(HOME)/.ctags: ctags
cp ctags $@
$(HOME)/.config/kitty/kitty.conf: $(HOME)/.config/kitty kitty.conf
cp kitty.conf $@
$(HOME)/Brewfile: Brewfile
cp Brewfile $@
# Works around Ctrl-H being misinterpreted as backspace in neovim
# due to bad OSX terminfo. Regular vim must ignore some OS-provided
# cterminfo for it not to misbehave!
$(HOME)/.xterm-256color.ti:
@infocmp xterm-256color | sed 's/kbs=^[hH]/kbs=\\177/' > $@
# Kitty is a unique snowflake and its config cannot be handled via rcup
install: $(TARGETS)
clean:
rm -fr $(TARGETS)