tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make -V

On Thu, 23 Aug 2012 03:59:01 +0000, David Holland writes:
> > The patch is trivial (I had it laying around - just need to find it ;-)
>It doesn't seem to me like a good idea to have (which defines
>the basic behavior of make, after all) becoming platform-dependent or
>adding platform-dependent logic. *is* platform dependent or at least what you find in FreeBSD and
NetBSD.  The I ship is generic, but will look for sys/
sys/ etc to find the platform dependent bits if available.

But the nob need not be set there, it can be set anywhere - even on the
command line:

$ FOO='${.CURDIR:H}' make -V FOO

In this case, NetBSD need do nothing, since the behavior doesn't change,
FreeBSD can reasonably set the knob in their - so that they keep
the behavior they want/expect.

And I get to avoid rototilling their ports collection,
so everyone wins ;-)

>It seems to me like adding another command-line option is the best

That was the original proposal (and the patch I was looking for), but no
one wanted the default behavior changed.
The knob approach allows everyone to have the default behavior they want
and as shown above, setting the variable on the command line works too.


Home | Main Index | Thread Index | Old Index