2013-01-20 04:05:27 +00:00
|
|
|
SOURCES := $(shell ls | egrep -v 'README|Makefile')
|
2012-04-10 04:02:46 +00:00
|
|
|
TARGETS := $(patsubst %,$(HOME)/.%,$(SOURCES))
|
|
|
|
|
2012-02-26 19:38:01 +00:00
|
|
|
|
|
|
|
$(HOME)/.%: %
|
2013-01-20 04:05:27 +00:00
|
|
|
ln -sv $(PWD)/'$^' '$@'
|
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
|
|
|
|
|
|
|
|
|
2013-01-20 04:05:27 +00:00
|
|
|
echo:
|
|
|
|
@echo SOURCES=$(SOURCES)
|
|
|
|
@echo TARGETS=$(TARGETS)
|
|
|
|
|
|
|
|
|
2012-11-11 13:11:21 +00:00
|
|
|
$(HOME)/.janus/go:
|
2013-01-20 04:05:27 +00:00
|
|
|
test -n "$$GOROOT" && ln -sv $$GOROOT/misc/vim ~/.janus/go ; true
|
2012-04-10 04:02:46 +00:00
|
|
|
|
2012-02-26 19:38:01 +00:00
|
|
|
|
2013-01-20 04:05:27 +00:00
|
|
|
.PHONY: all echo
|