summaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-02-16 21:09:47 +0000
committerRoland McGrath <roland@redhat.com>1994-02-16 21:09:47 +0000
commit015d4721192aa93deea4a029c2e11aad3aa71f89 (patch)
tree4835ac7371ab2677212d26ec42b511e1e468ebc1 /commands.c
parent7aca4a343d734600ccf6dafff92a97c313bb6d08 (diff)
downloadmake-015d4721192aa93deea4a029c2e11aad3aa71f89.tar.gz
entered into RCS
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/commands.c b/commands.c
index f37547f..696ca68 100644
--- a/commands.c
+++ b/commands.c
@@ -404,7 +404,9 @@ delete_target (file, on_behalf_of)
struct file *file;
char *on_behalf_of;
{
- if (file->precious !! file->phony)
+ struct stat st;
+
+ if (file->precious || file->phony)
return;
#ifndef NO_ARCHIVES
@@ -431,7 +433,7 @@ delete_target (file, on_behalf_of)
error ("*** [%s] Deleting file `%s'", on_behalf_of, file->name);
else
error ("*** Deleting file `%s'", file->name);
- if (unlink (child->file->name) < 0)
+ if (unlink (file->name) < 0)
perror_with_name ("unlink: ", file->name);
}
}
@@ -444,7 +446,6 @@ void
delete_child_targets (child)
struct child *child;
{
- struct stat st;
struct dep *d;
if (child->deleted)