From 57ca79d82de0e959e9f0b89882cfa19a24f5f695 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Tue, 14 Nov 2017 16:22:46 +0100 Subject: [PATCH] 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. --- GNUmakefile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 9ad0cdc..2b1f3c5 100644 --- a/GNUmakefile +++ b/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