-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
119 lines (84 loc) · 2.91 KB
/
Copy pathMakefile
File metadata and controls
119 lines (84 loc) · 2.91 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
DOTFILES = $(HOME)/dotfiles
all: vim git zsh haskell aliases utils fonts atom ssh
# =============================================================================
# Vim
#
vim: $(HOME)/.vim $(HOME)/.vimrc $(HOME)/.vimperatorrc
$(HOME)/.vim:
ln -s $(DOTFILES)/vim $(HOME)/.vim
$(HOME)/.vimrc:
ln -s $(DOTFILES)/vimrc $(HOME)/.vimrc
$(HOME)/.vimperatorrc:
ln -s $(DOTFILES)/vimperatorrc $(HOME)/.vimperatorrc
# =============================================================================
# Zsh
#
zsh: $(HOME)/.zshrc
$(HOME)/.zshrc:
ln -s $(DOTFILES)/zshrc $(HOME)/.zshrc
# =============================================================================
# Git
#
git: $(HOME)/.git-commit-template $(HOME)/.gitconfig
$(HOME)/.git-commit-template:
ln -s $(DOTFILES)/git-commit-template $(HOME)/.git-commit-template
$(HOME)/.gitconfig:
cp $(DOTFILES)/gitconfig $(HOME)/.gitconfig
# =============================================================================
# haskell
#
haskell: $(HOME)/.ghci $(HOME)/.xmonad $(HOME)/.xmobarrc $(HOME)/.haskeline
$(HOME)/.ghci:
ln -s $(DOTFILES)/ghci $(HOME)/.ghci
$(HOME)/.xmonad:
ln -s $(DOTFILES)/xmonad $(HOME)/.xmonad
$(HOME)/.xmobarrc:
ln -s $(DOTFILES)/xmobarrc $(HOME)/.xmobarrc
$(HOME)/.haskeline:
ln -s $(DOTFILES)/haskeline $(HOME)/.haskeline
# =============================================================================
# alias
#
aliases: $(HOME)/.alias
$(HOME)/.alias:
ln -s $(DOTFILES)/alias $(HOME)/.alias
# =============================================================================
# utils
#
utils: $(HOME)/.screenrc $(HOME)/.Xresources $(HOME)/.profile $(HOME)/.tmux.conf
$(HOME)/.screenrc:
ln -s $(DOTFILES)/screenrc $(HOME)/.screenrc
$(HOME)/.Xresources:
ln -s $(DOTFILES)/Xresources $(HOME)/.Xresources
$(HOME)/.profile:
ln -s $(DOTFILES)/profile $(HOME)/.profile
$(HOME)/.tmux.conf:
ln -s $(DOTFILES)/tmux.conf $(HOME)/.tmux.conf
# =============================================================================
# fonts
#
fonts: $(HOME)/.local/share/fonts
$(DOTFILES)/fonts/install.sh:
git submodule update --init --recursive
$(HOME)/.local/share/fonts: $(DOTFILES)/fonts/install.sh
bash $(DOTFILES)/fonts/install.sh
# =============================================================================
# ssh
#
ssh: $(HOME)/.ssh/id_rsa
$(HOME)/.ssh:
mkdir $(HOME)/.ssh
$(HOME)/.ssh/id_rsa: $(HOME)/.ssh
ssh-keygen -o -a 100 -t ed25519 -f $(HOME)/.ssh/id_rsa
# =============================================================================
# atom
#
atom: $(HOME)/.atom/keymap.cson $(HOME)/.atom/snippets.cson $(HOME)/.atom/config.cson
$(HOME)/.atom:
mkdir $(HOME)/.atom
$(HOME)/.atom/keymap.cson: $(HOME)/.atom
ln -s $(DOTFILES)/atom/keymap.cson $(HOME)/.atom/keymap.cson
$(HOME)/.atom/config.cson: $(HOME)/.atom
ln -s $(DOTFILES)/atom/config.cson $(HOME)/.atom/config.cson
$(HOME)/.atom/snippets.cson: $(HOME)/.atom
ln -s $(DOTFILES)/atom/snippets.cson $(HOME)/.atom/snippets.cson