Subject: CVS commit: src/usr.bin/make
To: None <source-changes@NetBSD.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 06/23/2005 02:31:31
Module Name:	src
Committed By:	lukem
Date:		Thu Jun 23 02:31:31 UTC 2005

Modified Files:
	src/usr.bin/make: main.c make.1 pathnames.h

Log Message:
Deprecate support for automagically setting the .OBJDIR to
	./obj.${MACHINE}
	./obj
	/usr/obj/${PWD}

The rules for the default .OBJDIR setting are now simplified to
(and documented as) trying the chdir to the following
(if the appropriate variable is defined):
	${MAKEOBJDIRPREFIX}${.CURDIR}
	${MAKEOBJDIR}
	${.CURDIR}

.OBJDIR can be overridden in the makefile.
<bsd.obj.mk> uses this to provide the "culled" .OBJDIR semantics
for NetBSD's /usr/src builds.

MAKEOBJDIRPREFIX & MAKEOBJDIR still can only be provided
in the environment or on make(1)'s command line.

Per discussion on tech-toolchain.
This should reduce a lot of lossage people have experienced over
the years with various .OBJDIR setups.


To generate a diff of this commit:
cvs rdiff -r1.109 -r1.110 src/usr.bin/make/main.c
cvs rdiff -r1.114 -r1.115 src/usr.bin/make/make.1
cvs rdiff -r1.14 -r1.15 src/usr.bin/make/pathnames.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.