summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-11-28 09:39:02 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-11-28 09:39:02 +0000
commit0819c353fbc0e81ae7dc5e388f27435173fd0f7e (patch)
tree764f3dfdb29e043ec6451a7ccf9af4b6eb438e61 /usr.bin
parent9766836e3dd4425d237529e5d8eee234d6e4f160 (diff)
PHONY targets never correspond to real files.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/make/targ.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/make/targ.c b/usr.bin/make/targ.c
index 71bb7490383..946949bc201 100644
--- a/usr.bin/make/targ.c
+++ b/usr.bin/make/targ.c
@@ -1,5 +1,5 @@
/* $OpenPackages$ */
-/* $OpenBSD: targ.c,v 1.54 2007/11/24 15:41:01 espie Exp $ */
+/* $OpenBSD: targ.c,v 1.55 2007/11/28 09:39:01 espie Exp $ */
/* $NetBSD: targ.c,v 1.11 1997/02/20 16:51:50 christos Exp $ */
/*
@@ -477,7 +477,7 @@ look_harder_for_target(GNode *gn)
GNode *extra, *cgn;
LstNode ln;
- if (gn->type & OP_RESOLVED)
+ if (gn->type & (OP_RESOLVED|OP_PHONY))
return;
gn->type |= OP_RESOLVED;
if (strncmp(gn->name, objdir, objdir_len) == 0) {