2012-04-10 04:02:46 +00:00
|
|
|
SOURCES := $(shell find * | egrep -v 'README|Makefile')
|
|
|
|
TARGETS := $(patsubst %,$(HOME)/.%,$(SOURCES))
|
|
|
|
|
2012-02-26 19:38:01 +00:00
|
|
|
|
|
|
|
$(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
|
|
|
|
2012-02-26 19:38:01 +00:00
|
|
|
|
2012-11-11 13:11:21 +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
|
|
|
|
2012-02-26 19:38:01 +00:00
|
|
|
|
|
|
|
.PHONY: all
|