]> git.ipfire.org Git - thirdparty/make.git/commitdiff
(snap_deps): Set command_flags bits in all :: entries.
authorRoland McGrath <roland@redhat.com>
Wed, 26 Oct 1994 02:49:21 +0000 (02:49 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 26 Oct 1994 02:49:21 +0000 (02:49 +0000)
file.c

diff --git a/file.c b/file.c
index 353e9701e5c84e3725967010767dec570c8a3e15..748ec7368d754226a93c4f12ffe4dae9bfa1c8dd 100644 (file)
--- a/file.c
+++ b/file.c
@@ -391,7 +391,8 @@ snap_deps ()
        ignore_errors_flag = 1;
       else
        for (d = f->deps; d != 0; d = d->next)
-         d->file->command_flags |= COMMANDS_NOERROR;
+         for (f2 = d->file; f2 != 0; f2 = f2->prev)
+           f2->command_flags |= COMMANDS_NOERROR;
     }
 
   f = lookup_file (".SILENT");
@@ -401,7 +402,8 @@ snap_deps ()
        silent_flag = 1;
       else
        for (d = f->deps; d != 0; d = d->next)
-         d->file->command_flags |= COMMANDS_SILENT;
+         for (f2 = d->file; f2 != 0; f2 = f2->prev)
+           f2->command_flags |= COMMANDS_NOERROR;
     }
 
   f = lookup_file (".POSIX");