dotfiles/Makefile

21 lines
351 B
Makefile
Raw Normal View History

2012-04-10 04:02:46 +00:00
SOURCES := $(shell find * | egrep -v 'README|Makefile')
TARGETS := $(patsubst %,$(HOME)/.%,$(SOURCES))
$(HOME)/.%: %
2012-04-10 04:04:36 +00:00
@(if [ -f '$^' ] ; then \
2012-04-10 04:02:46 +00:00
cp -v '$^' '$@' ; \
elif [ -d '$^' ] ; then \
mkdir -p '$@' ; \
2012-04-10 04:04:36 +00:00
fi)
2012-04-10 04:02:46 +00:00
all: $(TARGETS) $(HOME)/.janus/go
$(HOME)/.janus/go:
test -n "$$GOROOT" && ln -sv $$GOROOT/misc/vim ~/.janus/go
2012-04-10 04:02:46 +00:00
.PHONY: all