summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-09-17 14:05:35 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-09-17 14:05:35 +0000
commitd47e6adf364da16c2b63ea7d9e930b59d4cfb956 (patch)
treeeb70830e93176905f41adcf254391b1aed1847c8
parenta5e81b64fdad710fd6a992aa58bdf691f8e5301c (diff)
avoid printing out special targets in debug mode
-rw-r--r--usr.bin/make/targ.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/make/targ.c b/usr.bin/make/targ.c
index cb3ce35c0bc..ae989f3b622 100644
--- a/usr.bin/make/targ.c
+++ b/usr.bin/make/targ.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: targ.c,v 1.46 2007/09/17 12:42:09 espie Exp $ */
+/* $OpenBSD: targ.c,v 1.47 2007/09/17 14:05:34 espie Exp $ */
/* $NetBSD: targ.c,v 1.11 1997/02/20 16:51:50 christos Exp $ */
/*
@@ -411,7 +411,8 @@ TargPrintNode(GNode *gn, int pass)
static void
TargPrintOnlySrc(GNode *gn)
{
- if (OP_NOP(gn->type))
+ if (OP_NOP(gn->type) && gn->special == SPECIAL_NONE &&
+ !(gn->type & OP_DUMMY))
printf("#\t%s [%s]\n", gn->name,
gn->path != NULL ? gn->path : gn->name);
}