Re: Quicker re-build after patching

Mark Mentovai <www.mentovai.com-slash-contact.html@_._> Sat, 04 Jun 2005 01:36:14 -0400
Newsgroups gmane.comp.mozilla.devel.macosx
Organization Usually well-organized
Message-ID <www.mentovai.com-slash-contact.html-E2D9BC.01361404062005@h-204-29-187-156.netscape.com>
Uri Bernstein wrote:
> Whenever I make a change to the Mozilla code (or apply a patch), I
> re-build the project using:
> 
> make -f client.mk build
> 
> This works, but takes several minutes, and appears to be doping a lot
> more than just re-compiling the C++ files that I changed and re-linking
> (in fact, even if I changed nothing, it still takes several minutes).
> 
> Is there an easy way to just compile the changed files, without running
> all these "nsinstall"s (whatever they are)?

You want:

make -f client.mk alldep

That will still crunch some things you don't strictly need crunched.  
The other alternative is to "make" in the relevant object directories 
and copy build products by hand.  Not for the faint of heart.

I find that -w to make is also helpful in debugging build problems, but 
maybe that's because I just spent a bunch of time debugging lots of 
build problems.