help-gplusplus
[Top][All Lists]
Advanced

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

Re: recursive wildcard target in makefile


From: address@hidden
Subject: Re: recursive wildcard target in makefile
Date: Wed, 18 Nov 2009 05:09:52 -0800 (PST)
User-agent: G2/1.0

On 16 ноя, 22:35, "address@hidden"
<address@hidden> wrote:
> I want to make something like this:
>
> %.dep: $(patsubst ../temp/%,./%, $%*.cpp)
>
> How to write it right? temp/lib1/file.dep must depends on c/lib1/
> file.cpp and so on.

I found it!
The key is .SECONDEXPANSION: directive:
http://www.gnu.org/software/automake/manual/make/Secondary-Expansion.html


reply via email to

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