summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-10-24 23:44:16 +0000
committerRoland McGrath <roland@redhat.com>1994-10-24 23:44:16 +0000
commit9d36c92adbabb8e4f3bb05b469c2af5789565b6c (patch)
tree358ef67b861adb4ec00a05f701783cdc097be020
parent640c4ecd995f0a19b78cc4bb5255c0da2dc1a594 (diff)
downloadgunmake-9d36c92adbabb8e4f3bb05b469c2af5789565b6c.tar.gz
(snap_deps): Fix last change.
-rw-r--r--file.c32
1 files changed, 20 insertions, 12 deletions
diff --git a/file.c b/file.c
index 147bd8c..353e970 100644
--- a/file.c
+++ b/file.c
@@ -381,24 +381,32 @@ snap_deps ()
}
f = lookup_file (".EXPORT_ALL_VARIABLES");
- export_all_variables = f != 0 && f->is_target;
+ if (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;
+ if (f != 0 && f->is_target)
+ {
+ if (f->deps == 0)
+ ignore_errors_flag = 1;
+ 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;
+ if (f != 0 && f->is_target)
+ {
+ if (f->deps == 0)
+ silent_flag = 1;
+ 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;
+ if (f != 0 && f->is_target)
+ posix_pedantic = 1;
}
/* Set the `command_state' member of FILE and all its `also_make's. */