Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (9 sloc) 343 Bytes
# vim: ft=Makefile
default : all
all : $(CONFIGS)
clean-old-%:
@sh -c "if [ -h "~/.$*" ]; then rm ~/.$* ; echo ' [clean] old link ~/.$*'; fi"
install-file-% : %
@echo " [ln] Linking $* to ~/.$*"
@ln -sfT $(CURDIR)/$* $(HOME)/.$*
install: $(foreach f, $(CONFIGS), install-file-$(f) ) $(foreach g, $(OLD_CONFIGS), clean-old-$(g) )