From 4f9a71cc801e4a55249763b09a9b8d4940d2fef7 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sat, 19 Jan 2013 23:05:27 -0500 Subject: [PATCH] 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. --- .gitignore | 1 + Makefile | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 .gitignore 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