Changeset 280 in kBuild for branches/GNU/src/gmake/commands.c
- Timestamp:
- May 16, 2005 4:54:02 PM (20 years ago)
- Location:
- branches/GNU/src/gmake
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gmake
- Property svn:ignore
-
old new 34 34 README.DOS 35 35 README.W32 36 README.OS2 36 37 aclocal.m4 37 38 autom4te.cache
-
- Property svn:ignore
-
branches/GNU/src/gmake/commands.c
r153 r280 40 40 /* Set FILE's automatic variables up. */ 41 41 42 staticvoid42 void 43 43 set_file_variables (struct file *file) 44 44 { 45 struct dep *d; 45 46 char *at, *percent, *star, *less; 46 47 … … 107 108 star = file->stem; 108 109 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 } 111 118 112 119 if (file->cmds == default_file->cmds) … … 136 143 char *qp; 137 144 char *bp; 138 struct dep *d;139 145 unsigned int len; 140 146 … … 343 349 break; 344 350 } 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; 352 356 353 357 cmds->lines_flags[idx] = flags; … … 482 486 #endif 483 487 488 #ifdef WINDOWS32 489 /* Cannot call W32_kill with a pid (it needs a handle) */ 490 exit (EXIT_FAILURE); 491 #else 484 492 /* Signal the same code; this time it will really be fatal. The signal 485 493 will be unblocked when we return and arrive then to kill us. */ 486 494 if (kill (getpid (), sig) < 0) 487 495 pfatal_with_name ("kill"); 496 #endif /* not WINDOWS32 */ 488 497 #endif /* not Amiga */ 489 498 #endif /* not __MSDOS__ */
Note:
See TracChangeset
for help on using the changeset viewer.