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:		Fri Jul  3 15:31:35 UTC 2026

Modified Files:
	src/usr.bin/make: dir.c dir.h make.1 var.c
	src/usr.bin/make/unit-tests: dir.mk varmod-match.mk

Log Message:
ModifyWord_Match allow for alternate patterns

Allow :M*{/Makefile*,.mk} to match either */Makefile.* and *.mk
Use \{ and \} to match literal braces.

Add a couple of basic unit-tests.

Reviewed by: rillig


To generate a diff of this commit:
cvs rdiff -u -r1.298 -r1.299 src/usr.bin/make/dir.c
cvs rdiff -u -r1.49 -r1.50 src/usr.bin/make/dir.h
cvs rdiff -u -r1.393 -r1.394 src/usr.bin/make/make.1
cvs rdiff -u -r1.1180 -r1.1181 src/usr.bin/make/var.c
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/make/unit-tests/dir.mk
cvs rdiff -u -r1.32 -r1.33 src/usr.bin/make/unit-tests/varmod-match.mk

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.