dotfiles/Makefile

14 lines
273 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:27:46 +00:00
if [[ ! -e '$@' ]] ; then ln -sv '$(PWD)/$^' '$@' ; fi
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)