[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: implicit rule invocation issue
From: |
Boris Kolpackov |
Subject: |
Re: implicit rule invocation issue |
Date: |
Mon, 26 Jul 2004 16:50:09 +0000 (UTC) |
User-agent: |
nn/6.6.5+RFC1522 |
"Hakenson, Gary C." <address@hidden> writes:
> Do you have any suggestions as to how this may be accomplished?
When you say
VPATH = /d
you are in some sense asking make to add directory /d to the make's
current directory.
When you say
%.d : %.c
...
you are in some sense asking make to build your some foo.d from foo.c in
current directory. Which make does: it finds /d/foo.d. From this it should
be obvious that to solve your problem you should either not add /d to
the current directory (remove VPATH /d) or not ask to build foo.d in
make's current directory:
/%.d: /%.c
...
hth,
-boris