|
From: | Ronald Landheer-Cieslak |
Subject: | Re: Getting the target of an implicit rule within the rule |
Date: | Mon, 26 Jul 2004 12:34:40 -0400 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707 |
Solved using vpath directive. -thx rlc Ronald Landheer-Cieslak wrote:
I've Googled for this on my lunch break, can't find the answer :(I have a bunch of .d and .lo files that I want to have generated from the corresponding .c files in an out-of-tree build. The root of the source directory is in $(srcdir), which in my experiments is in ../ Hence, the rule I tried to apply was:%.d : $(srcdir)/$(subst .d,.c,$@) blah $@, however, is empty here (as the docs duely indicate). Is there any way to do this properly? Thanks! rlc
[Prev in Thread] | Current Thread | [Next in Thread] |