Loading ...
Sorry, an error occurred while loading the content.

[PATCH] Fix a Makefile bug on install_macosx

Expand Messages
  • Jjgod Jiang
    When make install in OS X, target install_macosx will execute make installruntime with prefix like /Applications/Vim.app/Contents/Resources/vim, this
    Message 1 of 1 , Nov 3, 2007
      When "make install" in OS X, target 'install_macosx' will execute
      'make installruntime' with prefix like
      /Applications/Vim.app/Contents/Resources/vim, this prefix value
      will be passed to $DATADIR in auto/config.mk, so $DATADIR will became
      which apparently is incorrect, this incorrect $DATADIR value with
      further affect $DEST_VIM variable, then it will cause mkinstalldirs
      running for that directory.

      src/Makefile | 3 +++
      1 files changed, 3 insertions(+), 0 deletions(-)

      diff --git a/src/Makefile b/src/Makefile
      index 7292f40..48dc51e 100644
      --- a/src/Makefile
      +++ b/src/Makefile
      @@ -2578,8 +2578,11 @@ install_macosx: gui_bundle
      -mkdir -p $(DESTDIR)$(prefix)/$(RESDIR)/vim/runtime
      # -mkdir $(DESTDIR)$(prefix)/$(APPDIR)/bin
      srcdir=`pwd`; $(MAKE) -f Makefile installruntime \
      + exec_prefix=$(DESTDIR)/Applications/$(APPDIR)/Contents \
      + BINDIR=$(DESTDIR)/Applications/$(APPDIR)/Contents/MacOS \
      VIMEXE=$$srcdir/$(VIMTARGET) \
      prefix=$(DESTDIR)$(prefix)/$(RESDIR)/vim \
      + VIMLOC=$(DESTDIR)$(prefix)/$(RESDIR)/vim \
      # Put the link back.
      ln -s `pwd`/../runtime $(RESDIR)/vim

      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
    Your message has been successfully submitted and would be delivered to recipients shortly.