Module Name: src
Committed By: sjg
Date: Sat Jan 29 07:42:10 UTC 2022
Modified Files:
src/usr.bin/make: make.1
Log Message:
Document quirks of target local variable assignments
To generate a diff of this commit:
cvs rdiff -u -r1.302 -r1.303 src/usr.bin/make/make.1
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/make.1
diff -u src/usr.bin/make/make.1:1.302 src/usr.bin/make/make.1:1.303
--- src/usr.bin/make/make.1:1.302 Thu Jan 27 06:02:59 2022
+++ src/usr.bin/make/make.1 Sat Jan 29 07:42:10 2022
@@ -1,4 +1,4 @@
-.\" $NetBSD: make.1,v 1.302 2022/01/27 06:02:59 sjg Exp $
+.\" $NetBSD: make.1,v 1.303 2022/01/29 07:42:10 sjg Exp $
.\"
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" from: @(#)make.1 8.4 (Berkeley) 3/19/94
.\"
-.Dd January 21, 2022
+.Dd January 28, 2022
.Dt MAKE 1
.Os
.Sh NAME
@@ -711,6 +711,16 @@ will be impacted by that filter (in "met
simply enabling/disabling any of the wrappers will not render all
of those targets out-of-date.
.Pp
+.Em NOTE :
+target local variable assignments behave differently in that;
+.Bl -tag -width Ds -offset indent
+.It Ic \&+=
+Only behaves as expected, if there is a previous
+local assignment for the same target and variable.
+.It Ic \&:=
+Is redundant since, the entire dependency line has already been expanded.
+.El
+.Pp
The seven built-in local variables are as follows:
.Bl -tag -width ".ARCHIVE" -offset indent
.It Va .ALLSRC