Subject: Re: testing for USE_DESTDIR in a Makefile
To: None <tech-pkg@NetBSD.org>
From: Klaus Heinz <email@example.com>
Date: 07/02/2007 21:21:48
Joerg Sonnenberger wrote:
> On Sun, Jul 01, 2007 at 06:51:51PM +0200, Klaus Heinz wrote:
> > I just had a case where I needed to test whether USE_DESTDIR is
> > (partially) on or off, so I would rather use
> In a package or the infrastructure? In the latter case, please use
In a package. If it had been in mk/* I would have used _USE_DESTDIR.
> _USE_DESTDIR. It might be a good idea to do that in all cases. Indepent
> of that, the variable is always set, so no need to check for defined.
Ok, I can forget about defined(USE_DESTDIR) but what about the real
question: can I rely on USE_DESTDIR=no if DESTDIR mode is switched off?
At the moment, I believe the answer is no.