Corrected issue with sh not understanding quoted commands.
This commit is contained in:
parent
cd39fb13dc
commit
f5174f5a85
|
@ -1,5 +1,5 @@
|
||||||
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
SRC_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
TARGET_DIR := "~/.vim"
|
TARGET_DIR := ~/.vim
|
||||||
INSTALLED := $(shell command -v vim 1>&2 >/dev/null ; echo $$? )
|
INSTALLED := $(shell command -v vim 1>&2 >/dev/null ; echo $$? )
|
||||||
|
|
||||||
install: | init update
|
install: | init update
|
||||||
|
@ -9,8 +9,8 @@ ifneq ($(INSTALLED), 0)
|
||||||
$(error Vim not installed)
|
$(error Vim not installed)
|
||||||
endif
|
endif
|
||||||
$(info => Setting up vim)
|
$(info => Setting up vim)
|
||||||
@ [ -e ~/.vim ] && echo " ~/.vim already exist. Skipping." || "ln -svf $(SRC_DIR) $(TARGET_DIR)"
|
@ [ -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 ~/.vimrc ] && echo " ~/.vimrc already exist. Skipping." || ln -svf $(TARGET_DIR)/vimrc ~/.vimrc
|
||||||
|
|
||||||
update:
|
update:
|
||||||
$(info => Updating vim)
|
$(info => Updating vim)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user