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 <[email protected]> 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 _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
