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 \
|
||||
.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
|
||||
|
|
Loading…
Reference in New Issue