dotfiles/Makefile

14 lines
257 B
Makefile
Raw Normal View History

2014-10-01 02:27:46 +00:00
SOURCES := $(shell ls | grep -E -v 'README|Makefile')
2012-04-10 04:02:46 +00:00
TARGETS := $(patsubst %,$(HOME)/.%,$(SOURCES))
$(HOME)/.%: %
2014-10-01 02:37:55 +00:00
$(RM) '$@' && ln -svf '$(PWD)/$^' '$@'
2014-10-01 02:27:46 +00:00
.PHONY: all
all: $(TARGETS)
2014-10-01 02:27:46 +00:00
.PHONY: echo
echo:
@echo SOURCES=$(SOURCES)
@echo TARGETS=$(TARGETS)