X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/bd78babfeb92083f4e5e153603397ea0ec64dd4c..559c36653eae60d54c1b196acd996231a546ad4b:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 51eeb96..48a4ccb 100644 --- a/Makefile +++ b/Makefile @@ -2,28 +2,28 @@ APATH := $(realpath .) RPATH := $(subst $(wildcard ~/),,$(APATH)) FILES := -DOTFILES := bash* flexget vimrc +DOTFILES := bash* flexget vim* .PHONY: install $(FILES) $(DOTFILES) install: $(FILES) $(DOTFILES) $(FILES): - if [[ -f ~/$@ || -d ~/$@ ]]; then \ + @if [[ -f ~/$@ || -d ~/$@ ]]; then \ if [[ -d $@ ]]; then \ - cp -rf ~/$@/* $@; \ + cp -r ~/$@/* $@; \ else \ - cp -rf ~/$@ $@; \ + cp -r ~/$@ $@; \ fi; \ rm -r ~/$@; \ fi; ln -sf $(RPATH)/$@ ~/.$@ $(DOTFILES): - if [[ -f ~/.$@ || -d ~/.$@ ]]; then \ + @if [[ -f ~/.$@ || -d ~/.$@ ]]; then \ if [[ -d $@ ]]; then \ - cp -rf ~/.$@/* $@; \ + cp -r ~/.$@/* $@; \ else \ - cp -rf ~/.$@ $@; \ + cp -r ~/.$@ $@; \ fi; \ rm -r ~/.$@; \ fi;