Install vim config

This commit is contained in:
Peter J. Holzer 2017-02-19 10:08:55 +01:00
parent 3fcd656c78
commit 04d2b4e9cd
1 changed files with 9 additions and 1 deletions

View File

@ -7,8 +7,13 @@ ALLSRC = \
.zshenv \ .zshenv \
.zshrc \ .zshrc \
.gitconfig \ .gitconfig \
.vim/ \
.vim/colors/ \
.vim/colors/hjp.vim \
.vimrc \
ALLDST = $(subst ., $(HOME)/., $(ALLSRC))
ALLDST = $(patsubst %, $(HOME)/%, $(ALLSRC))
install: $(ALLDST) install: $(ALLDST)
@ -19,5 +24,8 @@ echo:
$(HOME)/%: % $(HOME)/%: %
cp $^ $@ cp $^ $@
$(HOME)/%/:
mkdir $@
diff: diff:
for i in $(ALLSRC); do diff -u $(HOME)/$$i $$i; done for i in $(ALLSRC); do diff -u $(HOME)/$$i $$i; done