[Top][All Lists]

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

Re: VPATH and variable expansion

From: Sam Ravnborg
Subject: Re: VPATH and variable expansion
Date: Sun, 17 May 2009 20:54:15 +0200
User-agent: Mutt/

On Sun, May 17, 2009 at 07:27:07PM +0200, Werner LEMBERG wrote:
> [make 3.81]
> It seems that no variable expansion in VPATH is allowed.  Trying
> something like
>   VPATH = `pwd`/foo
> doesn't work for me (the directory `foo' actually exists within the
> current directory).  Using `:=' instead of `=' doesn't help either.

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

Note - you can use backticks in commands like this:

        echo `pwd`

Because the command is executed by your shell.


reply via email to

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