help-make
[Top][All Lists]
Advanced

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

Re: VPATH and variable expansion


From: Paul Smith
Subject: Re: VPATH and variable expansion
Date: Sun, 17 May 2009 17:11:27 -0400

On Sun, 2009-05-17 at 20:57 +0200, Werner LEMBERG wrote:
> > makefile syntax is not the same as shell syntax.
> > backticks does not work in makefiles as you expect them to.
> > 
> > To do what you want use:
> > 
> >     VPATH = $(shell pwd)/foo

You should use := here or you're setting yourself up for a lot of
performance problems.

You can also use (and save yourself even one shell invocation):

        VPATH := $(CURDIR)/foo

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.us
 "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]