summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2007-09-17 14:05:34 +0000
committerespie <espie@openbsd.org>2007-09-17 14:05:34 +0000
commitf6490164e61ec88e2768a6028b23f3207fe0dde7 (patch)
treeb2a2749475f6baa0b4904edf3b253e8a432c9e94
parentAdd a test for .BEGIN/.END keywords (diff)
downloadwireguard-openbsd-f6490164e61ec88e2768a6028b23f3207fe0dde7.tar.xz
wireguard-openbsd-f6490164e61ec88e2768a6028b23f3207fe0dde7.zip
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);
}