Corrected issue with sh not understanding quoted commands.

This commit is contained in:
James Patrick 2019-04-14 19:04:51 -04:00
parent cd39fb13dc
commit f5174f5a85
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
TARGET_DIR := "~/.vim"
TARGET_DIR := ~/.vim
INSTALLED := $(shell command -v vim 1>&2 >/dev/null ; echo $$? )
install: | init update
@ -9,8 +9,8 @@ ifneq ($(INSTALLED), 0)
$(error Vim not installed)
endif
$(info => Setting up vim)
@ [ -e ~/.vim ] && echo " ~/.vim already exist. Skipping." || "ln -svf $(SRC_DIR) $(TARGET_DIR)"
@ [ -e ~/.vim ] && echo " ~/.vimrc already exist. Skipping." || "ln -svf $(TARGET_DIR)/vimrc ~/.vimrc"
@ [ -e ~/.vim ] && echo " ~/.vim already exist. Skipping." || ln -svf $(SRC_DIR) $(TARGET_DIR)
@ [ -e ~/.vimrc ] && echo " ~/.vimrc already exist. Skipping." || ln -svf $(TARGET_DIR)/vimrc ~/.vimrc
update:
$(info => Updating vim)