VirtualBox

Changeset 1989 in kBuild for vendor/gnumake/current/remake.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/remake.c

    r900 r1989  
    11/* Basic dependency engine 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"
     
    464464      && default_file != 0 && default_file->cmds != 0)
    465465    {
    466       DBF (DB_IMPLICIT, _("Using default commands for `%s'.\n"));
     466      DBF (DB_IMPLICIT, _("Using default recipe for `%s'.\n"));
    467467      file->cmds = default_file->cmds;
    468468    }
     
    715715      must_make = 0;
    716716      DBF (DB_VERBOSE,
    717            _("No commands for `%s' and no prerequisites actually changed.\n"));
     717           _("No recipe for `%s' and no prerequisites actually changed.\n"));
    718718    }
    719719  else if (!must_make && file->cmds != 0 && always_make_flag)
     
    765765  if (file->command_state != cs_finished)
    766766    {
    767       DBF (DB_VERBOSE, _("Commands of `%s' are being run.\n"));
     767      DBF (DB_VERBOSE, _("Recipe of `%s' is being run.\n"));
    768768      return 0;
    769769    }
     
    988988             file on whose behalf we are checking.  */
    989989          struct dep *lastd;
     990          int deps_running = 0;
     991
     992          /* Reset this target's state so that we check it fresh.  It could be
     993             that it's already been checked as part of an order-only
     994             prerequisite and so wasn't rebuilt then, but should be now.  */
     995          set_command_state (file, cs_not_started);
    990996
    991997          lastd = 0;
     
    10261032              if (d->file->command_state == cs_running
    10271033                  || d->file->command_state == cs_deps_running)
    1028                 /* Record that some of FILE's deps are still being made.
    1029                    This tells the upper levels to wait on processing it until
    1030                    the commands are finished.  */
    1031                 set_command_state (file, cs_deps_running);
     1034                deps_running = 1;
    10321035
    10331036              lastd = d;
    10341037              d = d->next;
    10351038            }
     1039
     1040          if (deps_running)
     1041            /* Record that some of FILE's deps are still being made.
     1042               This tells the upper levels to wait on processing it until the
     1043               commands are finished.  */
     1044            set_command_state (file, cs_deps_running);
    10361045        }
    10371046    }
     
    13021311                 + ((FILE_TIMESTAMP_NS (mtime) - FILE_TIMESTAMP_NS (now))
    13031312                    / 1e9));
    1304               error (NILF, _("Warning: File `%s' has modification time %.2g s in the future"),
    1305                      file->name, from_now);
     1313              char from_now_string[100];
     1314
     1315              if (from_now >= 99 && from_now <= ULONG_MAX)
     1316                sprintf (from_now_string, "%lu", (unsigned long) from_now);
     1317              else
     1318                sprintf (from_now_string, "%.2g", from_now);
     1319              error (NILF, _("Warning: File `%s' has modification time %s s in the future"),
     1320                     file->name, from_now_string);
    13061321#endif
    13071322              clock_skew_detected = 1;
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