2064 |
d_ptr = &(*d_ptr)->next; |
d_ptr = &(*d_ptr)->next; |
2065 |
|
|
2066 |
if (cmds != 0) |
if (cmds != 0) |
2067 |
{ |
/* This is the rule with commands, so put its deps |
2068 |
/* This is the rule with commands, so put its deps |
last. The rationale behind this is that $< expands to |
2069 |
last. The rationale behind this is that $< expands |
the first dep in the chain, and commands use $< |
2070 |
to the first dep in the chain, and commands use $< |
expecting to get the dep that rule specifies. However |
2071 |
expecting to get the dep that rule specifies. |
the second expansion algorithm reverses the order thus |
2072 |
However the second expansion algorithm reverses |
we need to make it last here. */ |
2073 |
the order thus we need to make it last here. */ |
(*d_ptr)->next = this; |
|
|
|
|
(*d_ptr)->next = this; |
|
|
} |
|
2074 |
else |
else |
2075 |
{ |
{ |
2076 |
/* This is the rule without commands. Put its |
/* This is the rule without commands. Put its |
2077 |
dependencies at the end but before dependencies |
dependencies at the end but before dependencies from |
2078 |
from the rule with commands (if any). This way |
the rule with commands (if any). This way everything |
2079 |
everything appears in makefile order. */ |
appears in makefile order. */ |
2080 |
|
|
2081 |
if (f->cmds != 0) |
if (f->cmds != 0) |
2082 |
{ |
{ |