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:
parent
5b51d01e7e
commit
57ca79d82d
10
GNUmakefile
10
GNUmakefile
|
@ -7,8 +7,6 @@ ALLSRC = \
|
||||||
.zshenv \
|
.zshenv \
|
||||||
.zshrc \
|
.zshrc \
|
||||||
.gitconfig \
|
.gitconfig \
|
||||||
.vim/ \
|
|
||||||
.vim/colors/ \
|
|
||||||
.vim/colors/hjp.vim \
|
.vim/colors/hjp.vim \
|
||||||
.vimrc \
|
.vimrc \
|
||||||
|
|
||||||
|
@ -22,13 +20,7 @@ echo:
|
||||||
echo $(ALLDST)
|
echo $(ALLDST)
|
||||||
|
|
||||||
$(HOME)/%: %
|
$(HOME)/%: %
|
||||||
cp $^ $@
|
install -D $^ $@
|
||||||
|
|
||||||
$(HOME)/.vim/:
|
|
||||||
mkdir $@
|
|
||||||
|
|
||||||
$(HOME)/.vim/colors/:
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue