dotfiles/Makefile
2012-11-11 08:11:21 -05:00

21 lines
351 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) $(HOME)/.janus/go
$(HOME)/.janus/go:
test -n "$$GOROOT" && ln -sv $$GOROOT/misc/vim ~/.janus/go
.PHONY: all