Subject: Re: CVS commit: src/share/mk
To: Matthias Drochner <M.Drochner@fz-juelich.de>
From: David Laight <david@l8s.co.uk>
List: source-changes
Date: 11/27/2006 21:12:22
On Mon, Nov 27, 2006 at 09:38:03PM +0100, Matthias Drochner wrote:
> 
> apb@cequrux.com said:
> > Is ".OBJDIR: foo" equivalent to ".OBJDIR := foo"?  The make(1) man
> > page doesn't say so. 
> 
> Afaict a ":=" or "=" assignment does not do anything at all.
> The manpage says "`.OBJDIR' may be modified in the makefile"...
> It doesn't say how, but since this is is in a section about
> variables one would assume that it behaves like a variable
> in this regard. The manpage is misleading at least.

The man page says '`.OBJDIR' may be modified in the makefile as a global
variable.' which is just plain wrong.
I think it can be changed like that, but nothing special happens, so
the effects will be unexpected at best!

I also suspect that build.sh could be changed to that everything
used ${MAKEOBJDIR} eg MAKEOBJDIR=${.CURDIR}/obj.${MACHINE}.${BUILDID}
So that the variations in the makefiles wouldn't be needed.
It ought also be possible to requests that make itself create the
'obj' directory when MAKEOBJDIR or MAKEOBJDIRPREFIX is defined.

	David

-- 
David Laight: david@l8s.co.uk