From 08c8105c5468ff743d2f2ff2fdf3b77a6313b53e Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 16 May 2004 19:16:52 +0000 Subject: Various enhancements - OS/2 Patches - OpenVMS updates - Sanitize the handling of -include/sinclude with and without -k - Fix the setting of $< for order-only rules. --- file.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'file.c') diff --git a/file.c b/file.c index 0d577d1..8f89503 100644 --- a/file.c +++ b/file.c @@ -342,6 +342,10 @@ remove_intermediates (int sig) if (! HASH_VACANT (*file_slot)) { register struct file *f = *file_slot; + /* Is this file eligible for automatic deletion? + Yes, IFF: it's marked intermediate, it's not secondary, it wasn't + given on the command-line, and it's either a -include makefile or + it's not precious. */ if (f->intermediate && (f->dontcare || !f->precious) && !f->secondary && !f->cmd_target) { @@ -679,7 +683,7 @@ print_file (const void *item) if (f->cmd_target) puts (_("# Command-line target.")); if (f->dontcare) - puts (_("# A default or MAKEFILES makefile.")); + puts (_("# A default, MAKEFILES, or -include/sinclude makefile.")); puts (f->tried_implicit ? _("# Implicit rule search has been done.") : _("# Implicit rule search has not been done.")); -- cgit v1.2.3