dotfiles/Makefile

39 lines
1.1 KiB
Makefile
Raw Normal View History

2017-02-17 20:34:59 -05:00
LN_FLAGS = -sfnv
MKDIR_FLAGS = -pv
2017-11-15 21:41:22 -05:00
<<<<<<< HEAD
2017-11-15 18:28:04 -05:00
home_symlinks = aliases Xresources xbindkeysrc xinitrc offlineimaprc urlview msmtprc mutt zprofile zshrc vimrc vim Xmodmap
2017-11-15 21:41:22 -05:00
=======
2017-11-15 15:11:51 -05:00
home_symlinks = vimrc vim bash_profile
2017-11-15 21:41:22 -05:00
>>>>>>> be3d088b245011c8fe325ad807f90fbbcf691edb
2017-02-17 20:34:59 -05:00
config_copy =
2017-05-15 20:51:32 -04:00
config_symlinks =
2017-02-17 20:34:59 -05:00
all: install
2017-11-15 21:41:22 -05:00
<<<<<<< HEAD
2017-11-15 18:28:04 -05:00
install: aliases Xresources xbindkeysrc xinitrc offlineimaprc urlview msmtprc mutt zprofile zshrc vimrc vim Xmodmap
2017-11-15 21:41:22 -05:00
=======
2017-11-15 15:11:51 -05:00
install: vimrc vim bash_profile
2017-11-15 21:41:22 -05:00
>>>>>>> be3d088b245011c8fe325ad807f90fbbcf691edb
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/$@