dotfiles/Makefile

22 lines
343 B
Makefile
Raw Normal View History

SOURCES := $(shell ls | egrep -v 'README|Makefile')
2012-04-10 04:02:46 +00:00
TARGETS := $(patsubst %,$(HOME)/.%,$(SOURCES))
$(HOME)/.%: %
ln -sv $(PWD)/'$^' '$@'
2012-04-10 04:02:46 +00:00
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
2012-04-10 04:02:46 +00:00
.PHONY: all echo