dotfiles/Makefile
2012-04-10 00:02:46 -04:00

17 lines
249 B
Makefile

SOURCES := $(shell find * | egrep -v 'README|Makefile')
TARGETS := $(patsubst %,$(HOME)/.%,$(SOURCES))
$(HOME)/.%: %
if [ -f '$^' ] ; then \
cp -v '$^' '$@' ; \
elif [ -d '$^' ] ; then \
mkdir -p '$@' ; \
fi
all: $(TARGETS)
.PHONY: all