-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
95 lines (76 loc) · 1.99 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
.PHONY: linux
linux: linux-brew-pkgs base bin
.PHONY: mac
mac: mac-brew-pkgs base
.PHONY: mac-brew-pkgs
mac-brew-pkgs:
brew install tmux fish neovim python
.PHONY: linux-brew-pkgs
linux-brew-pkgs:
brew install tmux fish neovim
.PHONY: base
base: git nvim tmux profile zsh bash fish ghostty
.PHONY: git
git:
rm -f ~/.gitconfig
ln -s ${PWD}/src/gitconfig ~/.gitconfig
.PHONY: nvim
nvim: repos
@# Don't use -r. See above.
rm -f ~/.config/nvim ~/.cache/nvim
mkdir -p ~/.config
ln -s ${PWD}/repos/nvim ~/.config/nvim
.PHONY: tmux
tmux:
@# Don't use -r. See above.
rm -f ~/.tmux.conf
ln -s ${PWD}/src/tmux.conf ~/.tmux.conf
.PHONY: profile
profile:
@# Don't use -r. See above.
rm -f ~/.profile
ln -s ${PWD}/src/profile ~/.profile
.PHONY: zsh
zsh:
@# Don't use -r. See above.
rm -f ~/.zshrc
ln -s ${PWD}/src/zshrc ~/.zshrc
.PHONY: bash
bash:
@# Don't use -r. See above.
rm -f ~/.bashrc
ln -s ${PWD}/src/bashrc ~/.bashrc
.PHONY: fish
fish:
@# Don't use -r. See above.
rm -f ~/.config/fish
ln -s ${PWD}/src/config/fish ~/.config/fish
.PHONY: ghostty
ghostty:
@# Don't use -r. See above.
rm -f ~/.config/ghostty
ln -s ${PWD}/src/config/ghostty ~/.config/ghostty
.PHONY: bin
bin:
@# Don't use -r. See above.
rm -f ~/.bin
ln -s ${PWD}/src/bin ~/.bin
.PHONY: iosevka-font
iosevka-font: repos/iosevka iosevka-requirements
cp src/iosevka-tvst.toml ${PWD}/repos/iosevka/private-build-plans.toml
cd ${PWD}/repos/iosevka && npm run build -- contents::IosevkaTvst
.PHONY: iosevka-requirements
iosevka-requirements:
brew install node ttfautohint
cd ${PWD}/repos/iosevka && npm install
.PHONY: repos
repos: repos/neophile repos/nvim repos/iosevka
repos/neophile:
mkdir ${PWD}/repos/neophile
cd ${PWD}/repos && git clone https://github.com/tvst/neophile.nvim neophile
repos/nvim:
mkdir ${PWD}/repos/nvim
cd ${PWD}/repos && git clone https://github.com/tvst/nvim-config nvim
repos/iosevka:
mkdir ${PWD}/repos/iosevka
cd ${PWD}/repos && git clone --depth 1 https://github.com/be5invis/Iosevka.git iosevka