aboutsummaryrefslogtreecommitdiff
path: root/make.1
diff options
context:
space:
mode:
Diffstat (limited to 'make.1')
-rw-r--r--make.140
1 files changed, 32 insertions, 8 deletions
diff --git a/make.1 b/make.1
index 3529a5e71a53..3a2db8bc72a2 100644
--- a/make.1
+++ b/make.1
@@ -1,4 +1,4 @@
-.\" $NetBSD: make.1,v 1.391 2026/05/08 16:11:21 sjg Exp $
+.\" $NetBSD: make.1,v 1.394 2026/07/03 15:31:34 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 May 8, 2026
+.Dd July 3, 2026
.Dt MAKE 1
.Os
.Sh NAME
@@ -1038,11 +1038,26 @@ the current target is considered out-of-date.
.It Va .MAKE.META.CMP_FILTER
In
.Dq meta
-mode, it can (very rarely!) be useful to filter command
+mode, it can sometimes be useful to filter command
lines before comparison.
-This variable can be set to a set of modifiers that are applied to
-each line of the old and new command that differ, if the filtered
-commands still differ, the target is considered out-of-date.
+This variable can contain a list of modifiers that will be joined with
+.Ql \&:
+and applied to each line of the old and new command that differ.
+If the filtered commands still differ,
+the target is considered out-of-date.
+.It Va .MAKE.META.FILTER
+In
+.Dq meta
+mode, it can be useful to filter most of the data in a meta file.
+For example, when a pre-built tree is relocated or cloned,
+all the targets would be considered out-of-date without a filter
+to replace the old location with the new.
+This variable is similar to
+.Va .MAKE.META.CMP_FILTER
+but is appliled to commands, cwd and the syscall records from filemon.
+In the case of commands, this is done prior to any
+.Va .MAKE.META.CMP_FILTER
+modifiers are applied during comparison.
.It Va .MAKE.META.CREATED
In
.Dq meta
@@ -1506,7 +1521,16 @@ and
.Ql \&[] )
may
be used.
-The wildcard characters may be escaped with a backslash
+Braces can be used to list alternate patterns.
+For example,
+.Ql ${.ALLSRC:M*{Makefile*,.mk}}
+could be used to match any
+.Ql *Makefile*
+or
+.Ql *.mk
+in
+.Va .ALLSRC .
+The wildcard characters and braces may be escaped with a backslash
.Pq Ql \e .
As a consequence of the way values are split into words, matched,
and then joined, the construct
@@ -2317,7 +2341,7 @@ as if they all were preceded by a dash
.\" .It Ic .JOIN
.\" XXX
.It Ic .MADE
-Mark all sources of this target as being up to date.
+Mark the target(s) up to date.
.It Ic .MAKE
Execute the commands associated with this target even if the
.Fl n