Mail Archives: djgpp/2002/01/11/08:03:27
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 -