help-make
[Top][All Lists]
Advanced

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

Re: Using environmnet variables in make


From: David Boyce
Subject: Re: Using environmnet variables in make
Date: Sat, 28 Feb 2009 17:04:39 -0500

On Sat, Feb 28, 2009 at 4:51 PM, Paul Smith <address@hidden> wrote:
In this example you actually don't even need to export QA_STEP, since
only the shell is expanding it.  But, if you do really need to export it
then please do it portably:

       test:
              address@hidden; export QA_STEP; <do-something>

Since we're into pet peeves, and since as you note make uses /bin/sh, why not push

test:
       address@hidden <do-something>

as the recommended "elegant" option? It's worked on every /bin/sh ever made and it's the way one-shot exporting was originally designed to work.

DSB

reply via email to

[Prev in Thread] Current Thread [Next in Thread]