mirror of
https://github.com/mirror/make.git
synced 2025-01-04 01:10:26 +08:00
(snap_deps): Check .IGNORE, .SILENT, .POSIX here instead of in main.
If .IGNORE has deps, OR COMMANDS_NOERROR into their command_flags and don't set -i. Likewise .SILENT.
This commit is contained in:
parent
cc8d6cf343
commit
d37c9ba18a
20
file.c
20
file.c
@ -381,8 +381,24 @@ snap_deps ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
f = lookup_file (".EXPORT_ALL_VARIABLES");
|
f = lookup_file (".EXPORT_ALL_VARIABLES");
|
||||||
if (f != 0 && f->is_target)
|
export_all_variables = f != 0 && f->is_target;
|
||||||
export_all_variables = 1;
|
|
||||||
|
f = lookup_file (".IGNORE");
|
||||||
|
if (f->deps == 0)
|
||||||
|
ignore_errors_flag |= f != 0 && f->is_target;
|
||||||
|
else
|
||||||
|
for (d = f->deps; d != 0; d = d->next)
|
||||||
|
d->file->command_flags |= COMMANDS_NOERROR;
|
||||||
|
|
||||||
|
f = lookup_file (".SILENT");
|
||||||
|
if (f->deps == 0)
|
||||||
|
silent_flag |= f != 0 && f->is_target;
|
||||||
|
else
|
||||||
|
for (d = f->deps; d != 0; d = d->next)
|
||||||
|
d->file->command_flags |= COMMANDS_SILENT;
|
||||||
|
|
||||||
|
f = lookup_file (".POSIX");
|
||||||
|
posix_pedantic = f != 0 && f->is_target;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the `command_state' member of FILE and all its `also_make's. */
|
/* Set the `command_state' member of FILE and all its `also_make's. */
|
||||||
|
Loading…
Reference in New Issue
Block a user