/[make]/make/read.c
ViewVC logotype

Diff of /make/read.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.148 by psmith, Mon Jun 27 01:01:07 2005 UTC revision 1.149 by psmith, Mon Aug 8 05:08:00 2005 UTC
# Line 2064  record_files (struct nameseq *filenames, Line 2064  record_files (struct nameseq *filenames,
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                          {                          {

Legend:
Removed from v.1.148  
changed lines
  Added in v.1.149

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26