Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make Don't apply suffix rules for .PHONY targets. (...
details: https://anonhg.NetBSD.org/src/rev/41c4d104a080
branches: trunk
changeset: 480890:41c4d104a080
user: mycroft <mycroft%NetBSD.org@localhost>
date: Sat Jan 22 19:28:11 2000 +0000
description:
Don't apply suffix rules for .PHONY targets. (gmake doesn't do this either.)
diffstat:
usr.bin/make/suff.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (38 lines):
diff -r 5e5f9dbc3f3f -r 41c4d104a080 usr.bin/make/suff.c
--- a/usr.bin/make/suff.c Sat Jan 22 18:28:04 2000 +0000
+++ b/usr.bin/make/suff.c Sat Jan 22 19:28:11 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: suff.c,v 1.27 1999/09/16 00:54:15 mycroft Exp $ */
+/* $NetBSD: suff.c,v 1.28 2000/01/22 19:28:11 mycroft Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -39,14 +39,14 @@
*/
#ifdef MAKE_BOOTSTRAP
-static char rcsid[] = "$NetBSD: suff.c,v 1.27 1999/09/16 00:54:15 mycroft Exp $";
+static char rcsid[] = "$NetBSD: suff.c,v 1.28 2000/01/22 19:28:11 mycroft Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)suff.c 8.4 (Berkeley) 3/21/94";
#else
-__RCSID("$NetBSD: suff.c,v 1.27 1999/09/16 00:54:15 mycroft Exp $");
+__RCSID("$NetBSD: suff.c,v 1.28 2000/01/22 19:28:11 mycroft Exp $");
#endif
#endif /* not lint */
#endif
@@ -2302,9 +2302,10 @@
GNode *gn; /* node we're dealing with */
Lst slst;
{
- if (gn->type & OP_DEPS_FOUND) {
+ if (gn->type & (OP_DEPS_FOUND|OP_PHONY)) {
/*
* If dependencies already found, no need to do it again...
+ * If this is a .PHONY target, we do not apply suffix rules.
*/
return;
} else {
Home |
Main Index |
Thread Index |
Old Index