summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2009-08-16 09:47:07 +0000
committerMarc Espie <espie@cvs.openbsd.org>2009-08-16 09:47:07 +0000
commit2b859704b04351e7b9e3f0c2fe3a8100c61bf98c (patch)
treecfafd39802feb48151edadb45bed1b964ca04fb6
parent59818a026207249402b7e3ed5d98cd93af7852b8 (diff)
avoid touching .PHONY targets, they don't exist.
-rw-r--r--usr.bin/make/engine.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/make/engine.c b/usr.bin/make/engine.c
index b2a632d8f67..72e4bb0aa44 100644
--- a/usr.bin/make/engine.c
+++ b/usr.bin/make/engine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: engine.c,v 1.25 2009/05/12 09:46:39 espie Exp $ */
+/* $OpenBSD: engine.c,v 1.26 2009/08/16 09:47:06 espie Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
* Copyright (c) 1988, 1989 by Adam de Boor
@@ -169,10 +169,11 @@ rewrite_time(const char *name)
void
Job_Touch(GNode *gn)
{
- if (gn->type & (OP_JOIN|OP_USE|OP_EXEC|OP_OPTIONAL)) {
+ if (gn->type & (OP_JOIN|OP_USE|OP_EXEC|OP_OPTIONAL|OP_PHONY)) {
/*
* .JOIN, .USE, and .OPTIONAL targets are "virtual" targets
* and, as such, shouldn't really be created.
+ * Likewise, .PHONY targets are not really files
*/
return;
}