From 01925a4fb01c3fd0ca4ad813623a71c23b897d6b Mon Sep 17 00:00:00 2001 From: mycroft Date: Wed, 7 May 1997 13:12:33 +0000 Subject: [PATCH] Copy the .PHONY attribute to the cohorts of a double dependency. --- usr.bin/make/parse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index 00b9380c4d7d..c4ed2d139776 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -1,4 +1,4 @@ -/* $NetBSD: parse.c,v 1.30 1997/05/02 14:24:30 christos Exp $ */ +/* $NetBSD: parse.c,v 1.31 1997/05/07 13:12:33 mycroft Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94"; #else -static char rcsid[] = "$NetBSD: parse.c,v 1.30 1997/05/02 14:24:30 christos Exp $"; +static char rcsid[] = "$NetBSD: parse.c,v 1.31 1997/05/07 13:12:33 mycroft Exp $"; #endif #endif /* not lint */ @@ -431,7 +431,7 @@ ParseDoOp (gnp, opp) * sorry. */ Lst_ForEach(gn->parents, ParseLinkSrc, (ClientData)cohort); - cohort->type = OP_DOUBLEDEP|OP_INVISIBLE; + cohort->type = OP_DOUBLEDEP|OP_INVISIBLE|(gn->type & OP_PHONY); (void)Lst_AtEnd(gn->cohorts, (ClientData)cohort); /*