-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
84 lines (66 loc) · 1.79 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
DOTFILES = $(shell pwd)
install: \
install-flake8 \
install-gdb \
install-ghci \
install-git \
install-i3 \
install-i3status \
install-mutt \
install-npm \
install-psql \
install-tmux \
install-vim \
install-x11 \
install-zsh
ensure_config:
mkdir -p $(HOME)/.config
install-flake8: ensure_config
rm -f $(HOME)/.config/flake8
ln -s $(DOTFILES)/flake8/flake8 $(HOME)/.config/flake8
install-gdb:
rm -f $(HOME)/.gdbinit
ln -s $(DOTFILES)/gdb/gdbinit $(HOME)/.gdbinit
install-ghci:
rm -f $(HOME)/.ghci
ln -s $(DOTFILES)/ghci/ghci $(HOME)/.ghci
install-git: ensure_config
rm -f $(HOME)/.config/git
ln -s $(DOTFILES)/git $(HOME)/.config/git
install-i3:
rm -f $(HOME)/.i3
ln -s $(DOTFILES)/i3 $(HOME)/.i3
install-i3status:
rm -f $(HOME)/.i3status.conf
ln -s $(DOTFILES)/i3status/i3status.conf $(HOME)/.i3status.conf
install-mutt:
rm -f $(HOME)/.mutt
ln -s $(DOTFILES)/mutt $(HOME)/.mutt
install-npm:
rm -f $(HOME)/.npmrc
ln -s $(DOTFILES)/npm/npmrc $(HOME)/.npmrc
install-psql:
rm -f $(HOME)/.psqlrc
ln -s $(DOTFILES)/psql/psqlrc $(HOME)/.psqlrc
install-tmux:
rm -f $(HOME)/.tmux.conf
ln -s $(DOTFILES)/tmux/tmux.conf $(HOME)/.tmux.conf
install-vim:
git submodule update --init
rm -f $(HOME)/.vim
ln -s $(DOTFILES)/vim $(HOME)/.vim
install-x11:
rm -f $(HOME)/.xinitrc $(HOME)/.Xresources $(HOME)/.Xresources.d
ln -s $(DOTFILES)/x11/xinitrc $(HOME)/.xinitrc
ln -s $(DOTFILES)/x11/Xresources $(HOME)/.Xresources
ln -s $(DOTFILES)/x11/Xresources.d $(HOME)/.Xresources.d
install-zsh:
rm -f $(HOME)/.zshenv
echo 'ZDOTDIR=$(DOTFILES)/zsh' >> $(HOME)/.zshenv
echo 'source $$ZDOTDIR/.zshenv' >> $(HOME)/.zshenv
update-home-manager:
home-manager --flake $(CURDIR) switch
brew-bundle-dump:
brew bundle dump --force --file=$(CURDIR)/Brewfile
brew-bundle-install:
brew bundle install