[Top][All Lists]

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

Re: say how to change PATH

From: Paul D. Smith
Subject: Re: say how to change PATH
Date: Tue, 18 May 2004 00:44:44 -0400

%% Dan Jacobson <address@hidden> writes:

  dj> In Info, one cannot find how to change PATH in a Makefile.
  dj> PATH=/usr/sbin:$(PATH) won't do without spelling out PATH.
  dj> The best one can do is once on each line:
  dj> P=PATH=/usr/sbin:$$PATH
  dj> a:
  dj>   $P; which faubackup


You can set PATH to a value that includes itself in the exact same way
you can set any other variable to a value that includes itself: you use
simply-expanded variables:

    PATH := /usr/sbin:$(PATH)

 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]