diff --git a/Makefile b/Makefile index c441ff1..8e4081e 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,8 @@ - -NVIM_COFNIG = "${XDG_CONFIG_HOME}/nvim" - +NVIM_CONFIG_DIR = "$${XDG_CONFIG_HOME:-$$HOME/.config}/nvim" install: - ln -sfn `pwd` $(NVIM_COFNIG) + @mkdir -p $(NVIM_CONFIG_DIR) + @ln -sfn `pwd` $(NVIM_CONFIG_DIR) uninstall: - rm $(NVIM_COFNIG_DIR) + rm -rf $(NVIM_CONFIG_DIR)