diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-02 20:03:06 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-07-02 20:03:06 +1200 |
commit | 47a06511da299e18f965771d24b69f7e2566d950 (patch) | |
tree | afa0d1be7d8ededf0aa5771ea1fe47b2a54e5b1c /Makefile | |
parent | Add CentOS and Debian .vim tweaks (diff) | |
download | dotfiles-47a06511da299e18f965771d24b69f7e2566d950.tar.gz dotfiles-47a06511da299e18f965771d24b69f7e2566d950.zip |
Use if not && for conditional install
The whole expression evaluates true this way.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -550,10 +550,12 @@ install-vim-compiler: install-vim-config: mkdir -p -- $(VIMDIR)/config cp -p -- vim/vimrc $(VIMRC) - test -e /etc/debian_version \ - && cp -p -- vim/config/debian.vim $(VIMDIR)/config - test -e /etc/centos-release \ - && cp -p -- vim/config/centos.vim $(VIMDIR)/config + if [ -e /etc/debian_version ] ; then \ + cp -p -- vim/config/debian.vim $(VIMDIR)/config ; \ + fi + if [ -e /etc/centos-release ] ; then \ + cp -p -- vim/config/centos.vim $(VIMDIR)/config ; \ + fi install-vim-filetype: cp -p -- vim/filetype.vim vim/scripts.vim $(VIMDIR) |