Subject: Re: make(1)'s inbuilt objdir handling
To: None <tech-toolchain@NetBSD.org>
From: Luke Mewburn <lukem@NetBSD.org>
List: tech-toolchain
Date: 06/24/2005 12:56:14
--Vj8lTl3Roa4E9STX
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jun 23, 2005 at 10:34:41PM +1000, Luke Mewburn wrote:
  |   | This change would simplify the .OBJDIR handling in make(1) to:
  |   |=20
  |   |     	if MAKEOBJDIRPREFIX is set in the environment		# rule 1
  |   | 		.OBJDIR =3D ${MAKEOBJDIRPREFIX}/${PWD}
  |   | 	else MAKEOBJDIR is set in the environment		# rule 2
  |   | 			# MAKEOBJDIR may be an expression
  |   | 		.OBJDIR =3D ${MAKEOBJDIR}
  |   | 	else							# rule 3
  |   | 		.OBJDIR =3D .CURDIR
  |   |=20
  |   | Of course, a Makefile is still free to override .OBJDIR if it wants=
 to.
  |=20
  |=20
  | I've committed this.

I've since reverted it; it causes problems for people who currently
use the obj or obj.MACHINE semantics.

Once the <bsd.obj.mk> NetBSD src objdir semantics have been cleaned up=20
I'll reinvestigate this simplification.

--Vj8lTl3Roa4E9STX
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFCu3ZOpBhtmn8zJHIRAiyBAKCz+U26MZyroCTTn07KjlnuPyGI/wCgjIHx
7NWYhKsp9a7lgUxFkFSz/+8=
=tDXM
-----END PGP SIGNATURE-----

--Vj8lTl3Roa4E9STX--