-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
99 lines (76 loc) · 2.1 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
DOTDIR = ~/dotfiles
LINK = ln -f -s
define INFECT
if ! [ -e $2 ] ; then $(LINK) $(DOTDIR)/$(1) $(2) ; else echo "$2 already exists"; fi
endef
all: arch
linux: bash_ ctags_ git_ gnuplot_ inputrc_ R_ screen_it_ tmux_ zathura_ zsh_
arch: linux awesome_ cmus_ fonts_ mutt_ offlineimap_ user_dirs_ xdefaults_ xmodmap_
.PHONY: awesome_
awesome_: awesome
$(call INFECT,awesome,~/.config/awesome)
.PHONY: bash_
bash_: bash/bashrc
$(call INFECT,bash,~/.bash)
$(call INFECT,bash/bashrc,~/.bashrc)
.PHONY: cmus_
cmus_: cmus
$(call INFECT,cmus,~/.config/cmus)
.PHONY: ctags_
ctags_: ctags
$(call INFECT,ctags,~/.ctags)
.PHONY: fonts_
fonts_: fonts.conf
$(call INFECT,fonts.conf,~/.fonts.conf)
.PHONY: git_
git_: git/gitconfig git/gitignore_global
$(call INFECT,git/gitconfig,~/.gitconfig)
$(call INFECT,git/gitignore_global,~/.gitignore_global)
.PHONY: gnuplot_
gnuplot_: gnuplot
$(call INFECT,gnuplot,~/.gnuplot)
.PHONY: inputrc_
inputrc_: inputrc
$(call INFECT,inputrc,~/.inputrc)
.PHONY: moc_
moc_: moc/
$(call INFECT,moc,~/.moc)
.PHONY: mutt_
mutt_: mutt/
$(call INFECT,mutt,~/.mutt)
.PHONY: offlineimap_
offlineimap_: offlineimaprc
$(call INFECT,offlineimaprc,~/.offlineimaprc)
.PHONY: R_
R_: Renviron Rprofile
$(call INFECT,Rprofile,~/.Rprofile)
$(call INFECT,Renviron,~/.Renviron)
.PHONY: roxterm_
roxterm_: roxterm
$(call INFECT,roxterm,~/.config/roxterm.sourceforge.net)
.PHONY: screen_it_
screen_it_: screen-it.txt
tic screen-it.txt
.PHONY: tmux_
tmux_: tmux.conf
$(call INFECT,tmux.conf,~/.tmux.conf)
.PHONY: user_dirs_
user_dirs_: user-dirs.dirs
$(call INFECT,user-dirs.dirs,~/.config/user-dirs.dirs)
.PHONY: xdefaults_
xdefaults_: Xdefaults
$(call INFECT,Xdefaults,~/.Xdefaults)
.PHONY: xmodmap_
xmodmap_: xmodmap
$(call INFECT,xmodmap/Xmodmap,~/.Xmodmap)
$(call INFECT,xmodmap/Xmodmap2,~/.Xmodmap2)
$(call INFECT,xmodmap/Xmodmap3,~/.Xmodmap3)
.PHONY: zathura_
zathura_: zathura
$(call INFECT,zathura,~/.config/zathura)
.PHONY: zsh_
zsh_: zsh/zshrc zsh/zprofile
$(call INFECT,zsh,~/.zsh)
$(call INFECT,zsh/zshrc,~/.zshrc)
$(call INFECT,zsh/zprofile,~/.zprofile)
$(call INFECT,zsh/zprofile,~/.xprofile)