summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2000-10-05 16:27:06 +0000
committerPaul Smith <psmith@gnu.org>2000-10-05 16:27:06 +0000
commitd5a04ee9849e300f0e4b751ca7c1d1fd96f312a1 (patch)
tree7fc158cd2ce0d93f354c793dc09d9938de41614c /file.c
parent50ba270762ae63aa2f31934e4e41a84374b9bc6a (diff)
downloadgunmake-d5a04ee9849e300f0e4b751ca7c1d1fd96f312a1.tar.gz
* Various bug fixes.
* New Galician translation.
Diffstat (limited to 'file.c')
-rw-r--r--file.c30
1 files changed, 18 insertions, 12 deletions
diff --git a/file.c b/file.c
index 32c88b7..5ec6cad 100644
--- a/file.c
+++ b/file.c
@@ -26,6 +26,7 @@ Boston, MA 02111-1307, USA. */
#include "job.h"
#include "commands.h"
#include "variable.h"
+#include "debug.h"
/* Hash table of files the makefile knows how to make. */
@@ -410,18 +411,23 @@ remove_intermediates (sig)
{
if (sig)
error (NILF, _("*** Deleting intermediate file `%s'"), f->name);
- else if (!silent_flag)
- {
- if (! doneany)
- {
- fputs ("rm ", stdout);
- doneany = 1;
- }
- else
- putchar (' ');
- fputs (f->name, stdout);
- fflush (stdout);
- }
+ else
+ {
+ if (! doneany)
+ DB (DB_BASIC, (_("Removing intermediate files...\n")));
+ if (!silent_flag)
+ {
+ if (! doneany)
+ {
+ fputs ("rm ", stdout);
+ doneany = 1;
+ }
+ else
+ putchar (' ');
+ fputs (f->name, stdout);
+ fflush (stdout);
+ }
+ }
if (status < 0)
perror_with_name ("unlink: ", f->name);
}