Use install instead of cp

Install aquired a new useful option (-D) since I last looked at it (20
years or so ago), so let's use that.
This commit is contained in:
Peter J. Holzer 2017-11-14 16:22:46 +01:00
parent 5b51d01e7e
commit 57ca79d82d
1 changed files with 1 additions and 9 deletions

View File

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