Index: commands.c =================================================================== RCS file: /cvsroot/make/make/commands.c,v retrieving revision 1.55 diff -u -r1.55 commands.c --- commands.c 24 Feb 2004 13:50:20 -0000 1.55 +++ commands.c 19 Apr 2004 20:55:21 -0000 @@ -42,6 +42,7 @@ set_file_variables (struct file *file) { char *at, *percent, *star, *less; + struct dep *d; #ifndef NO_ARCHIVES /* If the target is an archive member `lib(member)', @@ -105,8 +106,17 @@ } star = file->stem; - /* $< is the first dependency. */ - less = file->deps != 0 ? dep_name (file->deps) : ""; + /* $< is the first not order-only dependency. */ + less = ""; + + for (d = file->deps; d != 0; d = d->next) + if (!d->ignore_mtime) + { + less = dep_name (d); + break; + } + + if (file->cmds == default_file->cmds) /* This file got its commands from .DEFAULT. @@ -134,7 +144,6 @@ char *caret_value; char *qp; char *bp; - struct dep *d; unsigned int len; /* Compute first the value for $+, which is supposed to contain