Chris Quenelle <Chris.Quenelle at sun.com> wrote:
> > 2) POSIX defines a way to forward command line macro=name
> > macro definitions to sub-make programs (make programs
> > called by the current make program) since at least 10
> > years.
>
> http://www.opengroup.org/onlinepubs/9699919799/
>
> Interesting. There doesn't seem to be an option
> to enable this behavior in a POSIX-conforming make
> utility. It always passes make variables to nested
> makes. So if we did this in the default make
> binary it would be incompatible with some existing
> Makefiles. In the context of OpenSolaris, I'd still
> be in favor of this kind of change, I think it's a big
> step forwards.
The behavior decumented in POSIX seems to me like the "natural"
behavior as I believe that an impartial observer would expect the
documented behavior for the top level make to also apply to submakes.
Do you know of any specific makefile on ON that would fail if the
behavior would be implemented?
I personally believe that this is a change that is important
because it affects behavior and usability. Just in contrast to
changing build support script to use ksh93 syntax ;-)
> On Solaris 10, there is /usr/xpg4/bin/make, which
> presumably has this behavior. But I don't see
> that binary in the OpenSolaris repo.
Ah, it may be that I did know this already as I had in mind that
this feature did work already somewhere around 2006.
> I'll file an RFE to add this behavior under a flag
> to the normal make utility on Solaris.
Thank you!
J?rg
--
EMail:joerg at schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin
js at cs.tu-berlin.de (uni)
joerg.schilling at fokus.fraunhofer.de (work) Blog:
http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily