X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Fri, 11 Jan 2002 15:49:42 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: Martin Steuer Message-Id: <5567-Fri11Jan2002154941+0200-eliz@is.elta.co.il> X-Mailer: emacs 21.1.50 (via feedmail 8 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <5.0.2.1.2.20020111135643.009e11a0@pop.gmx.net> (message from Martin Steuer on Fri, 11 Jan 2002 14:03:50 +0100) Subject: Re: Setting Env Var from within make 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> <5 DOT 0 DOT 2 DOT 1 DOT 2 DOT 20020111135643 DOT 009e11a0 AT pop DOT gmx DOT net> 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 Precedence: bulk > Date: Fri, 11 Jan 2002 14:03:50 +0100 > From: Martin Steuer > > > >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. Like this: export FOO = bar This will put "FOO=bar" into the environment of every program run by Make from this makefile.