dotfiles/Makefile
2012-04-10 00:04:36 -04:00

17 lines
252 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