-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
78 lines (64 loc) · 1.65 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
FILES := \
${HOME}/.bashrc \
${HOME}/.zshrc \
${HOME}/.xsession \
${HOME}/.config/nvim/init.vim \
${HOME}/.config/nvim/autoload/plug.vim \
${HOME}/.gitconfig \
${HOME}/.config/dunst/dunstrc \
${HOME}/.config/vifm/vifmrc \
${HOME}/.config/vifm/colors/.git \
${HOME}/.msmtprc \
${HOME}/.mbsyncrc \
${HOME}/.muttrc \
${HOME}/.muttrc.gmail \
${HOME}/.mailcap \
${HOME}/.dwm/patches/super.diff \
${HOME}/.dwm/patches/keys.diff \
${HOME}/.st/patches/scrollback.diff \
${HOME}/.st/patches/colors.diff \
${HOME}/.st/patches/font.diff \
${HOME}/.doom.d/init.el \
${HOME}/.doom.d/config.el \
${HOME}/.doom.d/packages.el \
all: $(FILES)
clean:
rm $(FILES)
${HOME}/.config/nvim/init.vim:
mkdir -p $(@D)
ln -s $(realpath nvim/init.vim) $@
${HOME}/.config/nvim/autoload/plug.vim:
mkdir -p $(@D)
ln -s $(realpath nvim/plug.vim) $@
${HOME}/.st/patches/%.diff: st/%.patch
mkdir -p $(@D)
cp $< $@
rm -f ${HOME}/.st/modified
${HOME}/.dwm/patches/%.diff: dwm/%.patch
mkdir -p $(@D)
cp $< $@
rm -f ${HOME}/.dwm/modified
${HOME}/.config/vifm/vifmrc:
mkdir -p $(@D)
ln -s $(realpath vifmrc) $@
${HOME}/.config/vifm/colors/.git:
rm -rf ${HOME}/.config/vifm/colors
git clone https://github.com/vifm/vifm-colors \
${HOME}/.config/vifm/colors
${HOME}/.xsession:
ln -s $(realpath xsession) $@
chmod +x $@
${HOME}/.config/dunst/dunstrc:
mkdir -p $(@D)
ln -s $(realpath dunstrc) $@
${HOME}/.%: %
ln -s $(realpath $<) $@
${HOME}/.doom.d/init.el:
mkdir -p $(@D)
ln -s $(realpath doom.d/init.el) $@
${HOME}/.doom.d/config.el:
mkdir -p $(@D)
ln -s $(realpath doom.d/config.el) $@
${HOME}/.doom.d/packages.el:
mkdir -p $(@D)
ln -s $(realpath doom.d/packages.el) $@