CVS commit: src/usr.bin/make

"Simon J. Gerraty" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	sjg
Date:		Thu Jul  2 16:08:01 UTC 2026

Modified Files:
	src/usr.bin/make: make.1 meta.c

Log Message:
make: in meta mode allow more general filtering

When a pre-built tree is cloned or relocated it is necessary to
filter all paths in .meta files that refer to the original location
to refer to the new.
For example (SB names the parent directory of src):

.if ${SB} != ${SB_ORIGIN:U${SB}}
.MAKE.META.FILTER += S,${SB_ORIGIN},${SB},
.endif

for commands; this is applied prior to any filters from
.MAKE.META.CMP_FILTER
but it is also applied to paths in the filemon syscall records
so we do not lose the benefit of them.

Reviewed by: rillig


To generate a diff of this commit:
cvs rdiff -u -r1.392 -r1.393 src/usr.bin/make/make.1
cvs rdiff -u -r1.221 -r1.222 src/usr.bin/make/meta.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.