2017-02-17 20:34:59 -05:00
|
|
|
LN_FLAGS = -sfnv
|
|
|
|
MKDIR_FLAGS = -pv
|
|
|
|
|
2020-12-28 22:33:21 -05:00
|
|
|
home_symlinks = Xresources xbindkeysrc xinitrc vimrc vim Xmodmap tmux.conf gitconfig bashrc
|
2017-02-17 20:34:59 -05:00
|
|
|
|
|
|
|
config_copy =
|
|
|
|
|
2018-08-21 00:35:54 -04:00
|
|
|
config_symlinks = termite dircolors-solarized i3
|
2017-02-17 20:34:59 -05:00
|
|
|
|
2019-08-24 17:16:36 -04:00
|
|
|
gnupg_symlinks = gpg-agent.conf
|
2017-11-18 02:10:59 -05:00
|
|
|
|
2019-08-24 17:16:36 -04:00
|
|
|
|
2020-12-28 22:33:21 -05:00
|
|
|
local_install: Xresources xbindkeysrc xinitrc vimrc vim termite dircolors-solarized i3 gitconfig gpg-agent.conf bashrc
|
2017-11-18 02:10:59 -05:00
|
|
|
|
2020-03-22 20:26:38 -04:00
|
|
|
mac_local_install: vimrc vim dircolors-solarized gpg-agent.conf tmux.conf bashrc
|
2019-11-26 14:18:41 -05:00
|
|
|
|
2020-12-28 22:33:21 -05:00
|
|
|
remote_install: vim vimrc dircolors-solarized tmux.conf
|
2017-11-18 02:41:10 -05:00
|
|
|
|
2017-11-18 02:53:48 -05:00
|
|
|
ctrl_install: Xmodmap
|
2017-02-17 20:34:59 -05:00
|
|
|
|
|
|
|
.PHONY: $(home_symlinks)
|
|
|
|
$(home_symlinks):
|
|
|
|
$(eval DESTDIR := $(shell dirname ~/.$@))
|
|
|
|
mkdir $(MKDIR_FLAGS) $(DESTDIR)
|
|
|
|
test -e $(CURDIR)/$@ && ln $(LN_FLAGS) $(CURDIR)/$@ ~/.$@
|
|
|
|
|
|
|
|
.PHONY: $(config_copy)
|
|
|
|
$(config_copy):
|
|
|
|
$(eval DESTDIR := $(shell dirname ~/.config/$@))
|
|
|
|
mkdir $(MKDIR_FLAGS) $(DESTDIR)
|
|
|
|
test -e $(CURDIR)/$@ && cp --remove-destination -p $(CURDIR)/$@ ~/.config/$@
|
|
|
|
|
|
|
|
.PHONY: $(config_symlinks)
|
|
|
|
$(config_symlinks):
|
|
|
|
$(eval DESTDIR := $(shell dirname ~/.config/$@))
|
|
|
|
mkdir $(MKDIR_FLAGS) $(DESTDIR)
|
|
|
|
test -e $(CURDIR)/$@ && ln $(LN_FLAGS) $(CURDIR)/$@ ~/.config/$@
|
2019-08-24 17:16:36 -04:00
|
|
|
|
|
|
|
.PHONY: $(ssh_symlinks)
|
|
|
|
$(ssh_symlinks):
|
|
|
|
$(eval DESTDIR := $(shell dirname ~/.ssh/$@))
|
|
|
|
mkdir $(MKDIR_FLAGS) $(DESTDIR)
|
|
|
|
test -e $(CURDIR)/$@ && ln $(LN_FLAGS) $(CURDIR)/$@ ~/.ssh/$@
|
|
|
|
|
|
|
|
.PHONY: $(gnupg_symlinks)
|
|
|
|
$(gnupg_symlinks):
|
|
|
|
$(eval DESTDIR := $(shell dirname ~/.gnupg/$@))
|
|
|
|
mkdir $(MKDIR_FLAGS) $(DESTDIR)
|
|
|
|
test -e $(CURDIR)/$@ && ln $(LN_FLAGS) $(CURDIR)/$@ ~/.gnupg/$@
|