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

Diff of /make/implicit.c

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

revision 1.45 by bosk, Fri Mar 4 14:31:09 2005 UTC revision 1.46 by bosk, Thu Mar 10 09:14:09 2005 UTC
# Line 798  pattern_search (struct file *file, int a Line 798  pattern_search (struct file *file, int a
798               of F below are null before we change them.  */               of F below are null before we change them.  */
799    
800            struct file *imf = d->intermediate_file;            struct file *imf = d->intermediate_file;
801            register struct file *f = enter_file (imf->name);            register struct file *f = lookup_file (imf->name);
802    
803              /* We don't want to delete an intermediate file that happened
804                 to be a prerequisite of some (other) target. Mark it as
805                 precious.  */
806              if (f != 0)
807                f->precious = 1;
808              else
809                f = enter_file (imf->name);
810    
811            f->deps = imf->deps;            f->deps = imf->deps;
812            f->cmds = imf->cmds;            f->cmds = imf->cmds;
813            f->stem = imf->stem;            f->stem = imf->stem;
814            f->also_make = imf->also_make;            f->also_make = imf->also_make;
815            f->is_target = 1;            f->is_target = 1;
816            imf = lookup_file (d->intermediate_pattern);  
817            if (imf != 0 && imf->precious)            if (!f->precious)
818              f->precious = 1;              {
819                  imf = lookup_file (d->intermediate_pattern);
820                  if (imf != 0 && imf->precious)
821                    f->precious = 1;
822                }
823    
824            f->intermediate = 1;            f->intermediate = 1;
825            f->tried_implicit = 1;            f->tried_implicit = 1;
826            for (dep = f->deps; dep != 0; dep = dep->next)            for (dep = f->deps; dep != 0; dep = dep->next)

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

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