diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-05-12 09:24:17 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-05-12 09:24:17 +0000 |
commit | 800492dc66a1f5baa2b7d697c43660e404dc6804 (patch) | |
tree | 5b11bab83cf3c1bc4ec69db34dc5537a9058be49 | |
parent | a000053494e580dfdbfa2d679b9a413f0391fafa (diff) |
fix obvious bug: .PHONY targets don't match files, so they're precious (we
don't even want to check for a matching file on the file system)
-rw-r--r-- | usr.bin/make/targ.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/targ.c b/usr.bin/make/targ.c index 4238910b67a..e0e6085f766 100644 --- a/usr.bin/make/targ.c +++ b/usr.bin/make/targ.c @@ -1,5 +1,5 @@ /* $OpenPackages$ */ -/* $OpenBSD: targ.c,v 1.57 2008/11/04 07:22:36 espie Exp $ */ +/* $OpenBSD: targ.c,v 1.58 2009/05/12 09:24:16 espie Exp $ */ /* $NetBSD: targ.c,v 1.11 1997/02/20 16:51:50 christos Exp $ */ /* @@ -298,7 +298,7 @@ Targ_Silent(GNode *gn) bool Targ_Precious(GNode *gn) { - if (allPrecious || (gn->type & (OP_PRECIOUS|OP_DOUBLEDEP))) + if (allPrecious || (gn->type & (OP_PRECIOUS|OP_DOUBLEDEP|OP_PHONY))) return true; else return false; |