delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/01/11/08:03:27

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-Id: <5.0.2.1.2.20020111135643.009e11a0@pop.gmx.net>
X-Sender: martinSteuer AT gmx DOT de@pop.gmx.net
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Fri, 11 Jan 2002 14:03:50 +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: <9003-Thu10Jan2002140639+0200-eliz@is.elta.co.il>
References: <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>
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 14:06 10.01.2002 +0200, you wrote:
> > Date: Thu, 10 Jan 2002 11:48:26 +0100
> > From: Martin Steuer <martinSteuer AT gmx DOT de>
> >
> > Setting an environment variable via the DOS set-command even within a
> > simple make-rule did not change the actual environment. Is this a normal
> > behavior and is there any way to circumvent this?
>
>Yes, this is normal behavior.  Programs can only change the
>environment of their child programs, but not of their parent,
>including a shell.

So what would you do to set an environment var from within a makefile. I 
tried to start up another instance of command within a makefile but i can't 
execute any commands to it, actually i could set a variable on this shell 
only through the /K switch.
Please help me i really need to change an environment var from a makefile. 
I need to set DEPENDENCIES_OUTPUT for gcc. I especially need the second 
value (the name of the target in the created dependency), 'cause i didn't 
found any other solution (with the -MMD option i cant specify the targets 
name).

Greetings,
Martin

- Raw text -


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