summaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1995-09-09 10:32:56 +0000
committerRoland McGrath <roland@redhat.com>1995-09-09 10:32:56 +0000
commit0eab889a28ab9c33d2a4010b282bcde804cee77b (patch)
tree7a0d8f70d31f67041143c5446fb4fc92eb5c75c3 /commands.c
parentc51dd24814060fea562cb91840ffb4f692907753 (diff)
downloadgunmake-0eab889a28ab9c33d2a4010b282bcde804cee77b.tar.gz
(delete_target): Ignore unlink failure if it is ENOENT.
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/commands.c b/commands.c
index f85c9f7..1a8df3a 100644
--- a/commands.c
+++ b/commands.c
@@ -1,5 +1,5 @@
/* Command processing for GNU Make.
-Copyright (C) 1988, 1989, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
+Copyright (C) 1988, 89, 91, 92, 93, 94, 95 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make is free software; you can redistribute it and/or modify
@@ -459,7 +459,8 @@ 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 (file->name) < 0)
+ if (unlink (file->name) < 0
+ && errno != ENOENT) /* It disappeared; so what. */
perror_with_name ("unlink: ", file->name);
}
}