I suppose that's better

This commit is contained in:
Dan Buch 2012-04-10 00:02:46 -04:00
parent 43bd86588c
commit d5f3178fe5

View File

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