Module Name:    src
Committed By:   rillig
Date:           Sun Nov  8 21:33:05 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: cond-func.mk

Log Message:
make(1): document what the directive ".if A&B" means


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/cond-func.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/unit-tests/cond-func.mk
diff -u src/usr.bin/make/unit-tests/cond-func.mk:1.4 src/usr.bin/make/unit-tests/cond-func.mk:1.5
--- src/usr.bin/make/unit-tests/cond-func.mk:1.4	Sat Oct 24 08:46:08 2020
+++ src/usr.bin/make/unit-tests/cond-func.mk	Sun Nov  8 21:33:05 2020
@@ -1,4 +1,4 @@
-# $NetBSD: cond-func.mk,v 1.4 2020/10/24 08:46:08 rillig Exp $
+# $NetBSD: cond-func.mk,v 1.5 2020/11/08 21:33:05 rillig Exp $
 #
 # Tests for those parts of the functions in .if conditions that are common
 # among several functions.
@@ -67,5 +67,13 @@ ${:UVAR{value}}=	variable name with brac
 .  error
 .endif
 
+# The following condition is interpreted as defined(A) && defined(B).
+# In lack of a function call expression, each kind of .if directive has a
+# default function that is called when a bare word is parsed.  For the plain
+# .if directive, this function is defined(); see "struct If ifs" in cond.c.
+.if A&B
+.  error
+.endif
+
 all:
 	@:;

Reply via email to