summaryrefslogtreecommitdiff
path: root/usr.bin/make/make.h
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2020-10-23 19:11:30 +0000
committerrillig <rillig@NetBSD.org>2020-10-23 19:11:30 +0000
commit4ef92d866fb9f5b503b061768401b0770dc2a8ff (patch)
tree6d0ee6ea5494a0135faeb2616fef0833fef60472 /usr.bin/make/make.h
parentf958c90f7ad307bbb6c0f8fed04389c7fa58faaa (diff)
make(1): add test for the '::' dependency operator
Diffstat (limited to 'usr.bin/make/make.h')
-rw-r--r--usr.bin/make/make.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/make/make.h b/usr.bin/make/make.h
index 659f3afe7d2..d37f354ac57 100644
--- a/usr.bin/make/make.h
+++ b/usr.bin/make/make.h
@@ -1,4 +1,4 @@
-/* $NetBSD: make.h,v 1.164 2020/10/23 18:36:09 rillig Exp $ */
+/* $NetBSD: make.h,v 1.165 2020/10/23 19:11:30 rillig Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -191,11 +191,15 @@ typedef enum {
*
* Some of the OP_ constants can be combined, others cannot. */
typedef enum GNodeType {
- /* Execution of commands depends on children (:) */
+ /* The dependency operator ':' is the most common one. The commands of
+ * this node are executed if any child is out-of-date. */
OP_DEPENDS = 1 << 0,
- /* Always execute commands (!) */
+ /* The dependency operator '!' always executes its commands, even if
+ * its children are up-to-date. */
OP_FORCE = 1 << 1,
- /* Execution of commands depends on children per line (::) */
+ /* The dependency operator '::' behaves like ':', except that it allows
+ * multiple dependency groups to be defined. Each of these groups is
+ * executed on its own, independently from the others. */
OP_DOUBLEDEP = 1 << 2,
/* Matches the dependency operators ':', '!' and '::'. */