Saturday, August 24, 2019

Re: Compile vim with clipboard support.

On Sat, Aug 24, 2019 at 9:26 AM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
> Based on the instructions given here:
>
> https://github.com/vim/vim/blob/master/src/INSTALL
>
> It said that:
>
> -----------
> The advantage of running configure separately, is that you can write a script
> to build Vim, without changing the Makefile or feature.h. Example (using sh):
>
> CFLAGS=-DCOMPILER_FLAG ./configure --enable-gui=motif
>
> One thing to watch out for: If the configure script itself changes, running
> "make" will execute it again, but without your arguments. Do "make clean" and
> run configure again.
> -----------
>
> So, it should be enough to do the following for using specific
> configure arguments:
>
> make clean
> ./configure ...
> make
>
> Am I right?

Well, setting configure options by means of environment variables
means that I don't need to modify the Makefile either. It also means
that I don't need another script to compile: I set the options once
and for all in the shell used to compile Vim (or in, say, one shell
for Big "vim" and one shell for Tiny "vi" in a shadow directory), then
I use just "make" to compile and "make install" thereafter if it ends
OK. And if the make program finds that it wants to reconfigure, it
will do it with the appropriate configure settings.

This means that I can afford not to run "make clean" (so that I can do
incremental compiles, compiling only the changed modules and what
depends on them) and that configure will only be run when necessary
(make does it when there is a change to the configure script, and it
does it with my configure settings). If I need to force a reconfigure
(for instance to pick up new system libraries after an OS upgrade)
then I run "make reconfig" instead of "make" and that will configure
(using my customizations and checking my system libraries) then
recompile everything.

Best regards,
Tony.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJkCKXv-Z5rO1MVxGuNG06P_fYUnt%3DXAq6RThLf4TZ7S%2Bx%2BSag%40mail.gmail.com.

No comments: