Realized I wasn't changing stuff as frequently

so decided to go back to symlinking everything so that I can more easily
spot changes, lazily introduce changes, etc.
This commit is contained in:
Dan Buch 2013-01-19 23:05:27 -05:00
parent a473a096d4
commit 4f9a71cc80
2 changed files with 10 additions and 8 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/janus/go

View File

@ -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