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:
all:
echo `pwd`
Because the command is executed by your shell.
Sam
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make