From: Roland McGrath Date: Tue, 5 Apr 1994 10:20:03 +0000 (+0000) Subject: (main): When disqualifying makefiles for updating, use double_colon pointer X-Git-Tag: 3.70.2~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e4b1ed670fe713646539e2a2d94542ddc9b7481;p=thirdparty%2Fmake.git (main): When disqualifying makefiles for updating, use double_colon pointer to find all entries for a file. --- diff --git a/main.c b/main.c index 5118d972..4b360159 100644 --- a/main.c +++ b/main.c @@ -862,7 +862,7 @@ main (argc, argv, envp) { register struct file *f = d->file; if (f->double_colon) - do + for (f = f->double_colon; f != NULL; f = f->prev) { if (f->deps == 0 && f->cmds != 0) { @@ -890,9 +890,7 @@ main (argc, argv, envp) break; } - f = f->prev; } - while (f != NULL); if (f == NULL || !f->double_colon) { if (makefile_mtimes == 0)