Tony Mechelynck wrote:
> Bram Moolenaar wrote: > > > > Philip Prindeville wrote: > > > >> Well, this is what I finally ended up using: > >> > >> +--- vim71/src/Makefile.orig 2007-05-12 04:57:13.000000000 -0700 > >> ++++ vim71/src/Makefile 2007-12-18 23:39:14.000000000 -0800 > >> +@@ -1074,8 +1074,10 @@ > >> + # default vi editor, it will create a link from vi to Vim when doing > >> + # "make install". An existing file will be overwritten! > >> + # When not using it, some make programs can't handle an undefined > >> $(LINKIT). > >> +-#LINKIT = -ln -f -s $(BINDIR)/$(VIMTARGET) /usr/bin/vi > >> +-LINKIT = @echo >/dev/null > >> ++LINKIT_n = @: > >> ++LINKIT_ = $(LINKIT_n) > >> ++LINKIT_y = ln -f -s > >> ++LINKIT = $(LINKIT_$(LINK_TO_VI)) > >> + > >> + ### > >> + ### GRAPHICAL USER INTERFACE (GUI). {{{1 > >> +@@ -1761,7 +1764,7 @@ > >> + $(STRIP) $(DEST_BIN)/$(VIMTARGET) > >> + chmod $(BINMOD) $(DEST_BIN)/$(VIMTARGET) > >> + # may create a link to the new executable from /usr/bin/vi > >> +- -$(LINKIT) > >> ++ -$(LINKIT) $(BINDIR)/$(VIMTARGET) $(DESTDIR)/usr/bin/vi > >> + > >> + # Long list of arguments for the shell script that installs the manual > >> pages > >> + # for one language. > >> > >> > >> Can we get it reviewed, approved, and committed? > > > > I prefer having the LINKIT variable have the whole command, so that it > > can be anything. Having it all in one line is a lot simpler. So I have > > this now: > > > > # If you are using Linux, you might want to use this to make vim the > > # default vi editor, it will create a link from vi to Vim when doing > > # "make install". An existing file will be overwritten! > > # When not using it, some make programs can't handle an undefined $(LINKIT). > > #LINKIT = ln -f -s $(DEST_BIN)/$(VIMTARGET) $(DESTDIR)/usr/bin/vi > > LINKIT = @echo >/dev/null > > > > > > Shouldn't the last argument to ln be either $(DEST_BIN)/vi (without /usr/bin) > or /usr/bin/vi (without $(DESTDIR)) ? I'm not sure creating a link with a > name > of (let's say) /usr/local/usr/bin/vi would work. $DESTDIR is the root directory of the installation. It's normally empty. You can set it to "/tmp/myroot" to build in a shadow directory tree. $prefix may be "/usr/local". The idea of using "/usr/bin/vi" is that the "normal" vi links to the vim command you just installed, possibly as /usr/local/bin/vim. -- DINGO: And after the spanking ... the oral sex. GALAHAD: Oh, dear! Well, I... GIRLS: The oral sex ... The oral sex. GALAHAD: Well, I suppose I could stay a BIT longer. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---