dotfiles/Makefile
2014-09-30 22:37:55 -04:00

14 lines
257 B
Makefile

SOURCES := $(shell ls | grep -E -v 'README|Makefile')
TARGETS := $(patsubst %,$(HOME)/.%,$(SOURCES))
$(HOME)/.%: %
$(RM) '$@' && ln -svf '$(PWD)/$^' '$@'
.PHONY: all
all: $(TARGETS)
.PHONY: echo
echo:
@echo SOURCES=$(SOURCES)
@echo TARGETS=$(TARGETS)