On Mon, 2010-12-06 at 14:56 +0330, ali hagigat wrote:
> Dear Sam,
> You never answered my latest questions!!
> Does this rule have a recipe?!!:
> main.o main.d : main.c defs.h
When multiple targets appear in an explicit context, it's the same as
writing each target individually. We've explained this before.
So the above statement is identical to writing:
main.o : main.c defs.h
main.d : main.c defs.h
So if you have an implicit or explicit rule for those
targets/prerequisites, then yes, you have a recipe.
For example, in the text you quoted:
> >> %.d: %.c
>>> <recipe>
so yes, that target has a recipe. One assumes the there is also a rule
somewhere (the builtin rule if nothing else) saying how to build a .o
from a .c, so yes, that has a recipe as well.
--
-------------------------------------------------------------------------------
Paul D. Smith <[email protected]> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make