VirtualBox

Changeset 1989 in kBuild for vendor/gnumake/current/file.c


Ignore:
Timestamp:
Oct 28, 2008 11:02:45 PM (16 years ago)
Author:
bird
Message:

Load gnumake-2008-10-28-CVS into vendor/gnumake/current.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/gnumake/current/file.c

    r900 r1989  
    11/* Target file management for GNU Make.
    22Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
    3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
     31998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
    44Foundation, Inc.
    55This file is part of GNU Make.
     
    77GNU Make is free software; you can redistribute it and/or modify it under the
    88terms of the GNU General Public License as published by the Free Software
    9 Foundation; either version 2, or (at your option) any later version.
     9Foundation; either version 3 of the License, or (at your option) any later
     10version.
    1011
    1112GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
     
    1415
    1516You should have received a copy of the GNU General Public License along with
    16 GNU Make; see the file COPYING.  If not, write to the Free Software
    17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.  */
     17this program.  If not, see <http://www.gnu.org/licenses/>.  */
    1818
    1919#include "make.h"
     
    257257          if (to_file->cmds->fileinfo.filenm != 0)
    258258            error (&from_file->cmds->fileinfo,
    259                    _("Commands were specified for file `%s' at %s:%lu,"),
     259                   _("Recipe was specified for file `%s' at %s:%lu,"),
    260260                   from_file->name, to_file->cmds->fileinfo.filenm,
    261261                   to_file->cmds->fileinfo.lineno);
    262262          else
    263263            error (&from_file->cmds->fileinfo,
    264                    _("Commands for file `%s' were found by implicit rule search,"),
     264                   _("Recipe for file `%s' was found by implicit rule search,"),
    265265                   from_file->name);
    266266          error (&from_file->cmds->fileinfo,
     
    268268                 from_file->name, to_hname);
    269269          error (&from_file->cmds->fileinfo,
    270                  _("Commands for `%s' will be ignored in favor of those for `%s'."),
     270                 _("Recipe for `%s' will be ignored in favor of the one for `%s'."),
    271271                 to_hname, from_file->name);
    272272        }
     
    362362        /* Is this file eligible for automatic deletion?
    363363           Yes, IFF: it's marked intermediate, it's not secondary, it wasn't
    364            given on the command-line, and it's either a -include makefile or
     364           given on the command line, and it's either a -include makefile or
    365365           it's not precious.  */
    366366        if (f->intermediate && (f->dontcare || !f->precious)
     
    487487          p = variable_expand ("");
    488488          variable_buffer_output (p, d->name, strlen (d->name) + 1);
     489          p = variable_buffer;
    489490        }
    490491      else
     
    499500              o = subst_expand (buffer, d->name, "%", "$*", 1, 2, 0);
    500501
    501               d->name = strcache_add_len (buffer, o - buffer);
     502              d->name = strcache_add_len (variable_buffer,
     503                                          o - variable_buffer);
    502504              d->staticpattern = 0; /* Clear staticpattern so that we don't
    503505                                       re-expand %s below. */
     
    901903    puts (_("#  Phony target (prerequisite of .PHONY)."));
    902904  if (f->cmd_target)
    903     puts (_("#  Command-line target."));
     905    puts (_("#  Command line target."));
    904906  if (f->dontcare)
    905907    puts (_("#  A default, MAKEFILES, or -include/sinclude makefile."));
     
    935937    {
    936938    case cs_running:
    937       puts (_("#  Commands currently running (THIS IS A BUG)."));
     939      puts (_("#  Recipe currently running (THIS IS A BUG)."));
    938940      break;
    939941    case cs_deps_running:
    940       puts (_("#  Dependencies commands running (THIS IS A BUG)."));
     942      puts (_("#  Dependencies recipe running (THIS IS A BUG)."));
    941943      break;
    942944    case cs_not_started:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette