dotfiles/Makefile
Dan Buch 4f9a71cc80 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.
2013-01-19 23:05:27 -05:00

22 lines
343 B
Makefile

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