Re: Why gmake create two path environment variables

Eli Zaretskii <[email protected]>
Newsgroups gmane.comp.gnu.make.windows
Message-ID <[email protected]>
> Cc: [email protected]
> From: [email protected]
> Date: Mon, 20 Oct 2008 18:09:13 +0800
> 
> This is a question about how to set path environment variable in windows 
> from with in a gmake makefile.

Just set PATH as any other Makefile variable (but use := to prevent
self-referencing recursive definition):

  export PATH := ABC;$(PATH)

> I use active perl but I dont think this matters.

Well, I think it does, see below.  And using Perl for changing PATH in
a Makefile is an overkill, IMO.  Make has its own means for doing that.

> There are one PATH modified and one Path untouched.

No, they are both named "Path".  I guess this is something Perl does
on Windows.

> How can I change both ?

Do you really need to change both?  If so, change both of them, as I
show above.

> And why there are two ?

If you ask why two variables named "Path", I think this is a problem
with how Perl displays PATH and Path.  But that's a guess.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.