21 lines
351 B
Makefile
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
|