-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
55 lines (38 loc) · 1.19 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
# Directory where this Makefile exists (the dotfiles directory)
DOTFILES_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
all: bootstrap zsh tmux git emacs esvm redshift
bootstrap: bootstrap-packages.sh
bootstrap-packages.sh: bootstrap.org
bin/tangle bootstrap.org
zsh: .zshrc
.zshrc: zsh.org
bin/tangle zsh.org
emacs: .emacs.d/init.el
.emacs.d/init.el: emacs.org
bin/tangle emacs.org
tmux: .tmux.conf
.tmux.conf: tmux.org
bin/tangle tmux.org
git: .gitconfig
.gitconfig: git.org
bin/tangle git.org
esvm: .esvmrc
.esvmrc: esvm.org
bin/tangle esvm.org
redshift: .config/redshift.conf
.config/redshift.conf: redshift.org
bin/tangle redshift.org
install: all
ln -s -v -i $(DOTFILES_DIR)/.zsh* ~/
ln -s -v -i $(DOTFILES_DIR)/.git?* ~/
ln -s -v -i $(DOTFILES_DIR)/.tmux* ~/
ln -s -v -i $(DOTFILES_DIR)/.emacs.d ~/
ln -s -v -i $(DOTFILES_DIR)/.esvmrc ~/
ln -s -v -i $(DOTFILES_DIR)/.config/redshift.conf ~/.config/
force-install: all
ln -s -v -f $(DOTFILES_DIR)/.zsh* ~/
ln -s -v -f $(DOTFILES_DIR)/.git?* ~/
ln -s -v -f $(DOTFILES_DIR)/.tmux* ~/
ln -s -v -f $(DOTFILES_DIR)/.emacs.d ~/
ln -s -v -f $(DOTFILES_DIR)/.esvmrc ~/
ln -s -v -f $(DOTFILES_DIR)/.config/redshift.conf ~/.config/