summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2009-08-16 09:47:06 +0000
committerespie <espie@openbsd.org>2009-08-16 09:47:06 +0000
commit78086188f5ef9effc3f61ea68e93c65a3d307bea (patch)
tree197ec6b772950b2d25638755d96e72c7e0fdd75c
parentreplace ".Ar file ..." with ".Ar" whenever possible. (diff)
downloadwireguard-openbsd-78086188f5ef9effc3f61ea68e93c65a3d307bea.tar.xz
wireguard-openbsd-78086188f5ef9effc3f61ea68e93c65a3d307bea.zip
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;
}