[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why gmake create two path environment variables
From: |
Eli Zaretskii |
Subject: |
Re: Why gmake create two path environment variables |
Date: |
Mon, 20 Oct 2008 13:17:40 +0200 |
> Cc: address@hidden
> From: address@hidden
> 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.