-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (21 loc) · 921 Bytes
/
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
# based off of: https://github.com/mrnugget/dotfiles/blob/master/Makefile
.PHONY: default all git zsh ghostty atuin
default:
@echo "To set up missing symlinks in your home directory, run: "
@echo " make all"
DOTFILE_PATH := $(shell pwd)
all: git zsh ghostty atuin
# % is a wildcard, $^ is the right side of the colon, $@ is the left side of the colon
# so this target will create a symlink from the right side to the left side
$(HOME)/.%: %
ln -sf $(DOTFILE_PATH)/$^ $@
git: $(HOME)/.gitconfig $(HOME)/.gitignore
zsh: $(HOME)/.zshrc $(HOME)/.zsh.d
$(HOME)/.config/ghostty/config:
mkdir -p $(HOME)/.config/ghostty
ln -sf $(DOTFILE_PATH)/ghostty_config $(HOME)/.config/ghostty/config
ghostty: $(HOME)/.config/ghostty/config
$(HOME)/.config/atuin/config.toml:
mkdir -p $(HOME)/.config/atuin
ln -sf $(DOTFILE_PATH)/atuin_config.toml $(HOME)/.config/atuin/config.toml
atuin: $(HOME)/.config/atuin/config.toml