delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/12/12:18:39

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-Id: <5.0.2.1.2.20020112104932.009eaec0@pop.gmx.net>
X-Sender: martinSteuer AT gmx DOT de@pop.gmx.net
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Sat, 12 Jan 2002 11:01:14 +0100
To: djgpp AT delorie DOT com
From: Martin Steuer <martinSteuer AT gmx DOT de>
Subject: Re: Setting Env Var from within make
In-Reply-To: <5567-Fri11Jan2002154941+0200-eliz@is.elta.co.il>
References: <5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20020111135643 DOT 009e11a0 AT pop DOT gmx DOT net>
<5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20020110113803 DOT 009e0200 AT pop DOT gmx DOT net>
<5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20020110113803 DOT 009e0200 AT pop DOT gmx DOT net>
<5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20020111135643 DOT 009e11a0 AT pop DOT gmx DOT net>
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

At 15:49 11.01.2002 +0200, you wrote:
>Like this:
>
>   export FOO = bar
>
>This will put "FOO=bar" into the environment of every program run by
>Make from this makefile.

Thanks for your help!
But now i came to another problem i need to change the value of
DEPENDENCIES_OUTPUT everytime before gcc is executed in the command section 
of a rule. But i dont see any way of doing this.
For example: "export FOO = bar" wouldn't work as a command to the shell.

Is there any way to change the value of a variable in a command?
I also looked up the builtin functions of make but i didnt found an obvious 
solution.

Please help me a last time ;-)

Greetings,
Martin

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019