help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Regarding running shell script from Makefile


From: Paul Smith
Subject: RE: Regarding running shell script from Makefile
Date: Mon, 14 May 2007 08:54:11 -0400

On Mon, 2007-05-14 at 13:20 +0100, Dave Korn wrote:
> On 14 May 2007 12:30, Paul Smith wrote:
> 
> > On Mon, 14 May 2007 11:52:59 +0100, Dave Korn wrote:
> >> export PATH:=/myhome/tools/bin:$PATH
> > 
> > This is not correct.  You need to use the make variable $(PATH), not the
> > shell variable $PATH, since you're in a makefile:
> > 
> > export PATH := /myhome/tools/bin:$(PATH)

> Well, it does work

No it doesn't.

> export PATH:=${PATH}:/tmp

Yes, that will work fine.  But that's not the example you gave in your
email.

>   Am I missing something?

Check the example you gave, quoted above :)

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

[Prev in Thread] Current Thread [Next in Thread]