VirtualBox

Changeset 280 in kBuild for branches/GNU/src/gmake/commands.c


Ignore:
Timestamp:
May 16, 2005 4:54:02 PM (20 years ago)
Author:
bird
Message:

Current make snaphot, 2005-05-16.

Location:
branches/GNU/src/gmake
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gmake

    • Property svn:ignore
      •  

        old new  
        3434README.DOS
        3535README.W32
         36README.OS2
        3637aclocal.m4
        3738autom4te.cache
  • branches/GNU/src/gmake/commands.c

    r153 r280  
    4040/* Set FILE's automatic variables up.  */
    4141
    42 static void
     42void
    4343set_file_variables (struct file *file)
    4444{
     45  struct dep *d;
    4546  char *at, *percent, *star, *less;
    4647
     
    107108  star = file->stem;
    108109
    109   /* $< is the first dependency.  */
    110   less = file->deps != 0 ? dep_name (file->deps) : "";
     110  /* $< is the first not order-only dependency.  */
     111  less = "";
     112  for (d = file->deps; d != 0; d = d->next)
     113    if (!d->ignore_mtime)
     114      {
     115        less = dep_name (d);
     116        break;
     117      }
    111118
    112119  if (file->cmds == default_file->cmds)
     
    136143    char *qp;
    137144    char *bp;
    138     struct dep *d;
    139145    unsigned int len;
    140146
     
    343349            break;
    344350          }
    345       if (!(flags & COMMANDS_RECURSE))
    346         {
    347           unsigned int len = strlen (p);
    348           if (sindex (p, len, "$(MAKE)", 7) != 0
    349               || sindex (p, len, "${MAKE}", 7) != 0)
    350             flags |= COMMANDS_RECURSE;
    351         }
     351
     352      /* If no explicit '+' was given, look for MAKE variable references.  */
     353      if (!(flags & COMMANDS_RECURSE)
     354          && (strstr (p, "$(MAKE)") != 0 || strstr (p, "${MAKE}") != 0))
     355        flags |= COMMANDS_RECURSE;
    352356
    353357      cmds->lines_flags[idx] = flags;
     
    482486#endif
    483487
     488#ifdef WINDOWS32
     489  /* Cannot call W32_kill with a pid (it needs a handle) */
     490  exit (EXIT_FAILURE);
     491#else
    484492  /* Signal the same code; this time it will really be fatal.  The signal
    485493     will be unblocked when we return and arrive then to kill us.  */
    486494  if (kill (getpid (), sig) < 0)
    487495    pfatal_with_name ("kill");
     496#endif /* not WINDOWS32 */
    488497#endif /* not Amiga */
    489498#endif /* not __MSDOS__  */
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