-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
70 lines (48 loc) · 1.21 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
# WARNING: uses GNU make
# path of . relative to $HOME
DOTPATH ?= .dotfiles
.PHONY: zsh
zsh: ~/.zsh ~/.zshrc
~/.zsh:
ln -sf $(DOTPATH)/zsh $@
~/.zshrc: ~/.zsh
ln -sf .zsh/zshrc $@
.PHONY: vim
vim: ~/.vim
~/.vim:
ln -sf $(DOTPATH)/vim $@
.PHONY: nvim
nvim: ~/.config/nvim/init.vim
~/.config/nvim/init.vim: init.vim
mkdir -p $(dir $@)
ln -sf ../../$(DOTPATH)/$< $@
.PHONY: tmux
tmux: ~/.tmux.conf
~/.tmux.conf: tmux.conf
ln -sf $(DOTPATH)/$< $@
.PHONY: git
git: ~/.config/git/config
~/.config/git/config: gitconfig
mkdir -p $(dir $@)
install -m644 $< $@
.PHONY: mpv
mpv: ~/.config/mpv/mpv.conf
~/.config/mpv/mpv.conf: mpv.conf
mkdir -p $(dir $@)
install -m644 $< $@
.PHONY: xmonad xmobar
xmonad: ~/.xmonad/xmonad.hs ~/.xmonad/lib ~/bin/i3lock_wrapper
xmobar: ~/.xmobar/xmobar.hs ~/.xmobar/lib
~/.xmonad/xmonad.hs: xmonad-xmobar/xmonad-$(HOSTNAME).hs
install -m644 $< $@
~/.xmonad/lib: xmonad-xmobar/lib
ln -sf ../$(DOTPATH)/$< $@
~/bin/i3lock_wrapper: xmonad-xmobar/i3lock_wrapper
install -m700 $< $@
~/.xmobar/xmobar.hs: xmonad-xmobar/xmobar-$(HOSTNAME).hs
install -m644 $< $@
~/.xmobar/lib: xmonad-xmobar/lib
ln -sf ../$(DOTPATH)/$< $@
xmodmap: ~/.Xmodmap
~/.Xmodmap: Xmodmap
install -m644 $< $@