diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-08-08 04:00:37 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-08-08 04:00:37 +0000 |
| commit | 1d6a79bc33c7430c06233ffc8bbe081ad3635fea (patch) | |
| tree | c0237573a48aa1380d8729841d3270822c839a48 /usr.bin/make/suff.c | |
| parent | 90a2b819e31b3ef89db07412cf352a49e1d21c53 (diff) | |
Notes
Diffstat (limited to 'usr.bin/make/suff.c')
| -rw-r--r-- | usr.bin/make/suff.c | 15 |
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); } |
