[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: VPATH/vpath query
From: |
Paul Smith |
Subject: |
Re: VPATH/vpath query |
Date: |
Mon, 26 Apr 2010 07:44:33 -0400 |
On Mon, 2010-04-26 at 04:24 -0700, Payal wrote:
> $ cat Makefile
> .PHONY : all
> # VPATH = ./1
> vpath %-1 ./1
> all :
> cat test-1
>
> $ make
> cat test-1
> cat: test-1: No such file or directory
> make: *** [all] Error 1
>
> $ cat 1/test-1
> Hello World
>
> What is wrong? Both VPATH (currently commented & vpath) are not
> working?
Make never grovels through your command scripts, trying to figure out
which words are filenames and which are not, etc. vpath does not allow
for replacement of tokens in recipes.
See "Writing Shell Commands with Directory Search" in the GNU make
manual.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist