aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/make/suff.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1995-06-18 12:34:14 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1995-06-18 12:34:14 +0000
commit76da55f6bce32032bd215b490fa2f23a4158ec19 (patch)
tree91257bccf4dda92d8334ba4a74af5a2241987117 /usr.bin/make/suff.c
parentecf74fe675a16224aae550dcbcc402888df14681 (diff)
Notes
Diffstat (limited to 'usr.bin/make/suff.c')
-rw-r--r--usr.bin/make/suff.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/usr.bin/make/suff.c b/usr.bin/make/suff.c
index 1980bae9d09b..7340383acd67 100644
--- a/usr.bin/make/suff.c
+++ b/usr.bin/make/suff.c
@@ -1911,7 +1911,20 @@ SuffFindNormalDeps(gn, slst)
targ->cp = Lst_Init(FALSE);
#endif
- SuffAddLevel(srcs, targ);
+ /*
+ * Only use the default suffix rules if we don't have commands
+ * or dependencies defined for this gnode
+ */
+ if (Lst_IsEmpty(gn->commands) && Lst_IsEmpty(gn->children))
+ SuffAddLevel(srcs, targ);
+ else {
+ if (DEBUG(SUFF))
+ printf("not ");
+ }
+
+ if (DEBUG(SUFF))
+ printf("adding suffix rules\n");
+
(void)Lst_AtEnd(targs, (ClientData)targ);
}