]> git.rmz.io Git - dotfiles.git/blobdiff - Makefile
add .vim
[dotfiles.git] / Makefile
index 51eeb965237744da3386393532590225108e3a0a..48a4ccb4b2c6fbc446de750f1f4e61e07faca6f6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,28 +2,28 @@ APATH := $(realpath .)
 RPATH := $(subst $(wildcard ~/),,$(APATH))
 
 FILES :=
 RPATH := $(subst $(wildcard ~/),,$(APATH))
 
 FILES :=
-DOTFILES := bash* flexget vimrc
+DOTFILES := bash* flexget vim*
 
 .PHONY: install $(FILES) $(DOTFILES)
 install: $(FILES) $(DOTFILES)
 
 $(FILES): 
 
 .PHONY: install $(FILES) $(DOTFILES)
 install: $(FILES) $(DOTFILES)
 
 $(FILES): 
-       if [[ -f ~/$@ || -d ~/$@ ]]; then \
+       @if [[ -f ~/$@ || -d ~/$@ ]]; then \
          if [[ -d $@ ]]; then \
          if [[ -d $@ ]]; then \
-           cp -rf ~/$@/* $@; \
+           cp -r ~/$@/* $@; \
          else \
          else \
-           cp -rf ~/$@ $@; \
+           cp -r ~/$@ $@; \
          fi; \
          rm -r ~/$@; \
        fi; 
        ln -sf $(RPATH)/$@ ~/.$@ 
 
 $(DOTFILES): 
          fi; \
          rm -r ~/$@; \
        fi; 
        ln -sf $(RPATH)/$@ ~/.$@ 
 
 $(DOTFILES): 
-       if [[ -f ~/.$@ || -d ~/.$@ ]]; then \
+       @if [[ -f ~/.$@ || -d ~/.$@ ]]; then \
          if [[ -d $@ ]]; then \
          if [[ -d $@ ]]; then \
-           cp -rf ~/.$@/* $@; \
+           cp -r ~/.$@/* $@; \
          else \
          else \
-           cp -rf ~/.$@ $@; \
+           cp -r ~/.$@ $@; \
          fi; \
          rm -r ~/.$@; \
        fi; 
          fi; \
          rm -r ~/.$@; \
        fi;