-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
17 lines (15 loc) · 860 Bytes
/
Makefile
File metadata and controls
17 lines (15 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
DOTFILES_EXCLUDES := .DS_Store .git .gitmodules .travis.yml .config .github
DOTFILES_TARGET := $(wildcard .??*) bin
DOTFILES_DIR := $(PWD)
DOTFILES_FILES := $(filter-out $(DOTFILES_EXCLUDES), $(DOTFILES_TARGET))
deploy:
@$(foreach val, $(DOTFILES_FILES), ln -sfnv $(abspath $(val)) $(HOME)/$(val);)
@ln -sfnv $(abspath tmux) $(HOME)/.tmux
@mkdir -p $(HOME)/.config
@$(foreach val, $(wildcard config/*), ln -sfnv $(abspath $(val)) $(HOME)/.config/$(notdir $(val));)
@mkdir -p $(HOME)/.claude/commands
@$(foreach val, $(wildcard claude/commands/*), ln -sfnv $(abspath $(val)) $(HOME)/.claude/commands/$(notdir $(val));)
@ln -sfnv $(abspath claude/settings.json) $(HOME)/.claude/settings.json
@ln -sfnv $(abspath claude/settings.local.json) $(HOME)/.claude/settings.local.json
init:
@$(foreach val, $(wildcard ./etc/init/*.sh), bash $(val);)