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:
parent
a473a096d4
commit
4f9a71cc80
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/janus/go
|
17
Makefile
17
Makefile
@ -1,20 +1,21 @@
|
|||||||
SOURCES := $(shell find * | egrep -v 'README|Makefile')
|
SOURCES := $(shell ls | egrep -v 'README|Makefile')
|
||||||
TARGETS := $(patsubst %,$(HOME)/.%,$(SOURCES))
|
TARGETS := $(patsubst %,$(HOME)/.%,$(SOURCES))
|
||||||
|
|
||||||
|
|
||||||
$(HOME)/.%: %
|
$(HOME)/.%: %
|
||||||
@(if [ -f '$^' ] ; then \
|
ln -sv $(PWD)/'$^' '$@'
|
||||||
cp -v '$^' '$@' ; \
|
|
||||||
elif [ -d '$^' ] ; then \
|
|
||||||
mkdir -p '$@' ; \
|
|
||||||
fi)
|
|
||||||
|
|
||||||
|
|
||||||
all: $(TARGETS) $(HOME)/.janus/go
|
all: $(TARGETS) $(HOME)/.janus/go
|
||||||
|
|
||||||
|
|
||||||
|
echo:
|
||||||
|
@echo SOURCES=$(SOURCES)
|
||||||
|
@echo TARGETS=$(TARGETS)
|
||||||
|
|
||||||
|
|
||||||
$(HOME)/.janus/go:
|
$(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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user