diff options
| author | mycroft <mycroft@NetBSD.org> | 1997-05-20 22:53:30 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1997-05-20 22:53:30 +0000 |
| commit | c19bda7d4cb79b3ee41a6d923aebc7fc28c7b082 (patch) | |
| tree | ff49093fcba10bfae80a4b8197c3123361b49c68 /usr.bin/make/arch.c | |
| parent | 1e601ecc2b3d542cf1ec028458abea882f79ebad (diff) | |
Check the .PHONY attribute...
Diffstat (limited to 'usr.bin/make/arch.c')
| -rw-r--r-- | usr.bin/make/arch.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/make/arch.c b/usr.bin/make/arch.c index 1edbd352107..c5245d522b8 100644 --- a/usr.bin/make/arch.c +++ b/usr.bin/make/arch.c @@ -1,4 +1,4 @@ -/* $NetBSD: arch.c,v 1.17 1996/11/06 17:58:59 christos Exp $ */ +/* $NetBSD: arch.c,v 1.18 1997/05/20 22:53:30 mycroft Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)arch.c 8.2 (Berkeley) 1/2/94"; #else -static char rcsid[] = "$NetBSD: arch.c,v 1.17 1996/11/06 17:58:59 christos Exp $"; +static char rcsid[] = "$NetBSD: arch.c,v 1.18 1997/05/20 22:53:30 mycroft Exp $"; #endif #endif /* not lint */ @@ -1164,7 +1164,9 @@ Arch_LibOODate (gn) { Boolean oodate; - if (OP_NOP(gn->type) && Lst_IsEmpty(gn->children)) { + if (gn->type & OP_PHONY) { + oodate = TRUE; + } else if (OP_NOP(gn->type) && Lst_IsEmpty(gn->children)) { oodate = FALSE; } else if ((gn->mtime > now) || (gn->mtime < gn->cmtime)) { oodate = TRUE; |
