-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
95 lines (76 loc) · 2.67 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
85
86
87
88
89
90
91
92
93
94
95
CWD=$(shell pwd)
install:
make $(HOME)/.aliases
make $(HOME)/.config/kitty/kitty.conf
make $(HOME)/.config/nvim/init.lua
make $(HOME)/.gemrc
make $(HOME)/.gitconfig
make $(HOME)/.hushlogin
make $(HOME)/.inputrc
make $(HOME)/.psqlrc
make $(HOME)/.rgignore
make $(HOME)/.rspec
make $(HOME)/.tmux.conf
make $(HOME)/.tool-versions
make $(HOME)/.zlogin
make $(HOME)/.zshenv
make $(HOME)/.zshrc
make homebrew
make homebrew-bundle
homebrew:
-@which brew > /dev/null || \
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
homebrew-bundle:
brew bundle -v
uninstall:
-test -L $(HOME)/.aliases && rm -fv $(HOME)/.aliases
-test -L $(HOME)/.config/kitty/kitty.conf && rm -fv $(HOME)/.config/kitty/kitty.conf
-test -L $(HOME)/.config/nvim/init.lua && rm -fv $(HOME)/.config/nvim
-test -L $(HOME)/.gemrc && rm -fv $(HOME)/.gemrc
-test -L $(HOME)/.gitconfig && rm -fv $(HOME)/.gitconfig
-test -L $(HOME)/.hushlogin && rm -fv $(HOME)/.hushlogin
-test -L $(HOME)/.inputrc && rm -fv $(HOME)/.inputrc
-test -L $(HOME)/.psqlrc && rm -fv $(HOME)/.psqlrc
-test -L $(HOME)/.rgignore && rm -fv $(HOME)/.rgignore
-test -L $(HOME)/.rspec && rm -fv $(HOME)/.rspec
-test -L $(HOME)/.tmux.conf && rm -fv $(HOME)/.tmux.conf
-test -L $(HOME)/.tool-versions && rm -fv $(HOME)/.tool-versions
-test -L $(HOME)/.zlogin && rm -fv $(HOME)/.zlogin
-test -L $(HOME)/.zshenv && rm -fv $(HOME)/.zshenv
-test -L $(HOME)/.zshrc && rm -fv $(HOME)/.zshrc
$(HOME)/.aliases:
ln -sv $(CWD)/aliases $(HOME)/.aliases
$(HOME)/.config/kitty/kitty.conf:
mkdir -p $(HOME)/.config/kitty
ln -sv $(CWD)/kitty.conf $(HOME)/.config/kitty/kitty.conf
$(HOME)/.config/nvim/init.lua:
mkdir -p $(HOME)/.config/nvim
mkdir -p $(HOME)/.config/nvim/colors
mkdir -p $(HOME)/.config/nvim/lua
ln -sv $(CWD)/nvim/init.lua $(HOME)/.config/nvim/init.lua
ln -sv $(CWD)/nvim/colors/ir_black.vim $(HOME)/.config/nvim/colors/ir_black.vim
ln -sv $(CWD)/nvim/plug-ins $(HOME)/.config/nvim/lua/plug-ins
$(HOME)/.gemrc:
ln -sv $(CWD)/gemrc $(HOME)/.gemrc
$(HOME)/.gitconfig:
ln -sv $(CWD)/gitconfig $(HOME)/.gitconfig
$(HOME)/.hushlogin:
ln -sv $(CWD)/hushlogin $(HOME)/.hushlogin
$(HOME)/.inputrc:
ln -sv $(CWD)/inputrc $(HOME)/.inputrc
$(HOME)/.psqlrc:
ln -sv $(CWD)/psqlrc $(HOME)/.psqlrc
$(HOME)/.rgignore:
ln -sv $(CWD)/rgignore $(HOME)/.rgignore
$(HOME)/.rspec:
ln -sv $(CWD)/rspec $(HOME)/.rspec
$(HOME)/.tmux.conf:
ln -sv $(CWD)/tmux.conf $(HOME)/.tmux.conf
$(HOME)/.tool-versions:
ln -sv $(CWD)/tool-versions $(HOME)/.tool-versions
$(HOME)/.zlogin:
ln -sv $(CWD)/zlogin $(HOME)/.zlogin
$(HOME)/.zshenv:
ln -sv $(CWD)/zshenv $(HOME)/.zshenv
$(HOME)/.zshrc:
ln -sv $(CWD)/zshrc $(HOME)/.zshrc