You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
343 B
22 lines
343 B
SOURCES := $(shell ls | egrep -v 'README|Makefile')
|
|
TARGETS := $(patsubst %,$(HOME)/.%,$(SOURCES))
|
|
|
|
|
|
$(HOME)/.%: %
|
|
ln -sv $(PWD)/'$^' '$@'
|
|
|
|
|
|
all: $(TARGETS) $(HOME)/.janus/go
|
|
|
|
|
|
echo:
|
|
@echo SOURCES=$(SOURCES)
|
|
@echo TARGETS=$(TARGETS)
|
|
|
|
|
|
$(HOME)/.janus/go:
|
|
test -n "$$GOROOT" && ln -sv $$GOROOT/misc/vim ~/.janus/go ; true
|
|
|
|
|
|
.PHONY: all echo
|