[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Getting the target of an implicit rule within the rule
From: |
Ronald Landheer-Cieslak |
Subject: |
Getting the target of an implicit rule within the rule |
Date: |
Wed, 21 Jul 2004 14:01:19 -0400 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707 |
Hello all,
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
- Getting the target of an implicit rule within the rule,
Ronald Landheer-Cieslak <=