summaryrefslogtreecommitdiff
path: root/usr.bin/make/make.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1996-03-15 21:52:32 +0000
committerchristos <christos@NetBSD.org>1996-03-15 21:52:32 +0000
commit0acf9905952e7feefaec5c6b16b9fbec5fbe435e (patch)
tree86bcaf509510425e3b6b526b5d928058a96159d4 /usr.bin/make/make.c
parent1c6c1c4af96d5bee1100c0b7db824d524efba1d4 (diff)
Add PHONY attribute and target. This is the first step to cleanup the
xinstall and xlint crud.
Diffstat (limited to 'usr.bin/make/make.c')
-rw-r--r--usr.bin/make/make.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/make/make.c b/usr.bin/make/make.c
index c142029dbd0..b637462ae6a 100644
--- a/usr.bin/make/make.c
+++ b/usr.bin/make/make.c
@@ -1,4 +1,4 @@
-/* $NetBSD: make.c,v 1.7 1995/06/14 15:19:40 christos Exp $ */
+/* $NetBSD: make.c,v 1.8 1996/03/15 21:52:37 christos Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)make.c 5.3 (Berkeley) 6/1/90";
#else
-static char rcsid[] = "$NetBSD: make.c,v 1.7 1995/06/14 15:19:40 christos Exp $";
+static char rcsid[] = "$NetBSD: make.c,v 1.8 1996/03/15 21:52:37 christos Exp $";
#endif
#endif /* not lint */
@@ -213,7 +213,7 @@ Make_OODate (gn)
printf(".JOIN node...");
}
oodate = gn->childMade;
- } else if (gn->type & (OP_FORCE|OP_EXEC)) {
+ } else if (gn->type & (OP_FORCE|OP_EXEC|OP_PHONY)) {
/*
* A node which is the object of the force (!) operator or which has
* the .EXEC attribute is always considered out-of-date.
@@ -221,6 +221,8 @@ Make_OODate (gn)
if (DEBUG(MAKE)) {
if (gn->type & OP_FORCE) {
printf("! operator...");
+ } else if (gn->type & OP_PHONY) {
+ printf(".PHONY node...");
} else {
printf(".EXEC node...");
}