diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..31c49e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/janus/go diff --git a/Makefile b/Makefile index aab7845..3e71321 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,21 @@ -SOURCES := $(shell find * | egrep -v 'README|Makefile') +SOURCES := $(shell ls | egrep -v 'README|Makefile') TARGETS := $(patsubst %,$(HOME)/.%,$(SOURCES)) $(HOME)/.%: % - @(if [ -f '$^' ] ; then \ - cp -v '$^' '$@' ; \ - elif [ -d '$^' ] ; then \ - mkdir -p '$@' ; \ - fi) + 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 + test -n "$$GOROOT" && ln -sv $$GOROOT/misc/vim ~/.janus/go ; true -.PHONY: all +.PHONY: all echo