On Tue, 06 Sep 2011, Christos Zoulas wrote:
Modified Files: src/etc/mtree: Makefile Log Message: Use ${.OBJDIR}/NetBSD.dist.tmp instead of just NetBSD.dist.tmp. This fixes a problem in which NetBSD.dist.tmp had been created in the SRCDIR by an earlier build (performed without an OBJDIR), and the existence of the file in the SRCDIR confused a subsequent build (performed with an OBJDIR).We definitely don't want to add such magic. Please revert. Otherwise we should go and do this in 100's of Makefiles.
I certainly see no reason to make similar changes in hundreds of Makefiles; only in the few places where people actually encounter (and report) problems traceable to this sort of issue. There have been only a few such issues, and we have fixed all the others (elsewhere under src/etc).
I have an idea for letting "make cleandir" deal with this problem, and may be willing to revert if that works out. --apb (Alan Barrett)