-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
47 lines (35 loc) · 1.13 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
LN_FLAGS = -sf
CP_FLAGS = -rf
symlinks = .bashrc .bash_aliases .bash_functions .tmux.conf \
.zshrc .vimrc .gitignore .gitconfig
symdirs = .ncmpcpp .vim .fonts .config/fontconfig/conf.d
dirs = .pulse
.PHONY: $(symlinks) $(symdirs)
all: install
$(symlinks):
test ! -f $(PWD)/dot$@ || ln $(LN_FLAGS) $(PWD)/dot$@ ~/$@
$(symdirs):
rm -rf ~/$@
test ! -d $(PWD)/dot$@ || ln $(LN_FLAGS) $(PWD)/dot$@/ ~/$@
$(dirs):
rm -rf ~/$@
test ! -d $(PWD)/dot$@ || cp $(CP_FLAGS) $(PWD)/dot$@/ ~/$@
clean:
rm -rf -- dot.vim/bundle/*
zsh-syntax:
test -d ~/.zsh/zsh-syntax-highlighting/ || \
(git clone --quiet git://github.com/zsh-users/zsh-syntax-highlighting.git \
~/.zsh/zsh-syntax-highlighting)
z:
test -d ~/.zsh/z/ || \
(git clone --quiet git://github.com/rupa/z.git \
~/.zsh/z)
bundle:
mkdir -p dot.vim/bundle
test -d dot.vim/bundle/vundle || \
(git clone --quiet https://github.com/gmarik/vundle.git \
dot.vim/bundle/vundle && vim +BundleInstall +qall)
fontconfig:
test -d ~/.config/fontconfig/conf.d || \
mkdir -p ~/.config/fontconfig/conf.d
install: fontconfig $(symlinks) $(symdirs) $(dirs) zsh-syntax z bundle