tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bsd.lib.mk question



On Tue, Jun 07, 2011 at 08:30:22AM -0700, Simon Gerraty wrote:
 > As to the original question, dependencies like
 > 
 > ${OBJS}: ${GENSRCS}
 > 
 > are best bound by say:
 > 
 > .if !exists(.depend)
 > 
 > since once 'make depend' has been done, or '.depend' is created as a
 > side effect of building, make should have sufficient info to only
 > rebuilt what it must.

...and that's a bad idea, because it leaves you in a mysterious broken
state when "make depend" croaks and leaves you an empty .depend file.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index