-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
100 lines (75 loc) · 1.99 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
LN_FLAGS = -sfnv
MKDIR_FLAGS = -pv
home_symlinks = gnupg/dirmngr.conf \
gnupg/gpg.conf \
profile \
terminfo \
tmux.conf \
weechat/perl \
weechat/alias.conf \
weechat/plugins.conf \
Xkbmap \
Xresources \
zshrc
config_copy = systemd/user/autossh@.service
config_symlinks = alacritty \
alot/themes \
ansible/ansible.cfg \
cower/config \
dunst/dunstrc \
gtk-2.0/gtkrc \
gtk-3.0/gtk.css \
gtk-3.0/settings.ini \
i3 \
i3status \
mpv/mpv.conf \
ncmpcpp/bindings \
ncmpcpp/config \
nvim/init.vim \
pacman/makepkg.conf \
picom.conf \
ranger/rc.conf \
ranger/rifle.conf \
rofi \
sway \
vim \
waybar \
xpra \
zsh
all: install
install: alacritty alot ansible dunst gnupg gtk-2.0 gtk-3.0 i3 i3status mpv \
nvim picom.conf ranger rofi sway systemd terminfo \
tmux.conf vim waybar Xkbmap xpra Xresources zsh zprofile zshrc
.PHONY: $(home_symlinks)
$(home_symlinks):
$(eval DESTDIR := $(shell dirname ~/.$@))
mkdir $(MKDIR_FLAGS) $(DESTDIR)
test -e $(CURDIR)/$@ && ln $(LN_FLAGS) $(CURDIR)/$@ ~/.$@
.PHONY: $(config_copy)
$(config_copy):
$(eval DESTDIR := $(shell dirname ~/.config/$@))
mkdir $(MKDIR_FLAGS) $(DESTDIR)
test -e $(CURDIR)/$@ && cp --remove-destination -p $(CURDIR)/$@ ~/.config/$@
.PHONY: $(config_symlinks)
$(config_symlinks):
$(eval DESTDIR := $(shell dirname ~/.config/$@))
mkdir $(MKDIR_FLAGS) $(DESTDIR)
test -e $(CURDIR)/$@ && ln $(LN_FLAGS) $(CURDIR)/$@ ~/.config/$@
alacritty: alacritty/alacritty.yml
alot: alot/themes
ansible: ansible/ansible.cfg
dunst: dunst/dunstrc
gnupg: gnupg/dirmngr.conf gnupg/gpg.conf
gtk-2.0: gtk-2.0/gtkrc
gtk-3.0: gtk-3.0/gtk.css gtk-3.0/settings.ini
i3status: i3status
mpv: mpv/mpv.conf
ncmpcpp: ncmpcpp/bindings ncmpcpp/config
nvim: nvim/init.vim
ranger: ranger/rc.conf ranger/rifle.conf
systemd: systemd/user/autossh@.service
terminfo: terminfo/x/xterm-termite
weechat: weechat/perl weechat/alias.conf weechat/plugins.conf
xpra: xpra/xpra.conf
zprofile:
test -e $(CURDIR)/profile && ln $(LN_FLAGS) $(CURDIR)/profile ~/.zprofile