help-make
[Top][All Lists]
Advanced

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

Re: how to output newlines?


From: Greg Chicares
Subject: Re: how to output newlines?
Date: Tue, 29 Jul 2008 12:19:42 +0000
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)

On 2008-07-29 08:31Z, PRC wrote:
> 
> I have a variable in my makefile script, whose values may be
> src_more = dir1/foo1.c dir2/foo2.c
> I wonder how to expand the variable to
> ----------------------------------------
> vpath foo1.c dir1
> vpath foo2.c dir2

But what would happen if the variable's definition were as follows?
  src_more = dir1/fooA.c dir2/fooA.c
If that expands to
  vpath fooA.c dir1
  vpath fooA.c dir2
then it probably doesn't do what you want. And if all file names are
unique, then why not write it as follows instead?
  vpath foo1.c dir1
  vpath foo2.c dir2
  src_more = foo1.c foo2.c




reply via email to

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