vim7: Make_mvc.mak always rebuilds everything

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

vim7: Make_mvc.mak always rebuilds everything

Walter Briscoe
I found that nmake -f Make_mvc.mak always rebuilds everything.
I download via cvs. I have the following files:
2005-05/19  20:52        6,467 D:\wfb\vim\bld\vim70aa\vim7\src\proto.h
2005-05/20  21:23        2,898 D:\wfb\vim\bld\vim70aa\vim7\src\proto\getchar.pro
...
2005-06/22  14:30        2,171 D:\wfb\vim\bld\vim70aa\vim7\src\proto\window.pro

Make_mvc.mak has a rule that proto.h is dependent on proto/*.pro.
As it does not update proto.h, everything is always rebuilt.

I fixed the problem for myself by touching proto.h.
Bram (or somebody else) may have an idea for a more robust fix.
--
Walter Briscoe
Reply | Threaded
Open this post in threaded view
|

Re: vim7: Make_mvc.mak always rebuilds everything

Bram Moolenaar

Walter Briscoe wrote:

> I found that nmake -f Make_mvc.mak always rebuilds everything.
> I download via cvs. I have the following files:
> 2005-05/19  20:52        6,467 D:\wfb\vim\bld\vim70aa\vim7\src\proto.h
> 2005-05/20  21:23        2,898 D:\wfb\vim\bld\vim70aa\vim7\src\proto\getchar.pro
> ...
> 2005-06/22  14:30        2,171 D:\wfb\vim\bld\vim70aa\vim7\src\proto\window.pro
>
> Make_mvc.mak has a rule that proto.h is dependent on proto/*.pro.
> As it does not update proto.h, everything is always rebuilt.
>
> I fixed the problem for myself by touching proto.h.
> Bram (or somebody else) may have an idea for a more robust fix.

Strictly speaking the rules of make mean that when one (indirectly)
included file is updated the file must be recompiled.  Thus that's what
happens.

For Unix I also disabled the dependency on all the proto/*.pro files.
It does cause problems when you are not careful...

--
hundred-and-one symptoms of being an internet addict:
134. You consider bandwidth to be more important than carats.

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///