summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-09-07 00:02:25 +0000
committerRoland McGrath <roland@redhat.com>1994-09-07 00:02:25 +0000
commit4244f182f20db095007162aa6d1064114158ee5a (patch)
tree6125141bfaa4da26c1401937a9e15b9b9b4eb4b5 /file.c
parentbe6e6d74bb7a9a1527841e063c00022d05dd9030 (diff)
downloadmake-4244f182f20db095007162aa6d1064114158ee5a.tar.gz
(set_command_state): New function.
Diffstat (limited to 'file.c')
-rw-r--r--file.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/file.c b/file.c
index 1545291..be333f4 100644
--- a/file.c
+++ b/file.c
@@ -385,6 +385,19 @@ snap_deps ()
export_all_variables = 1;
}
+/* Set the `command_state' member of FILE and all its `also_make's. */
+
+void
+set_command_state (file, state)
+ struct file *file;
+ int state;
+{
+ file->command_state = state;
+
+ for (d = file->also_make; d != 0; d = d->next)
+ d->command_state = state;
+}
+
/* Print the data base of files. */
static void