On Mon, 2023-07-17 at 09:02 -0400, David Boyce wrote: > This raises a side question: it's quite common for glob libraries to > support ** as meaning "search recursively", such as > https://docs.python.org/3/library/glob.html. I'd be a bit surprised > if gnulib'sĀ glob implementation didn't support this. Is it possible > for GNU make to support $(wildcard **/.mk)?
gnulib's glob does not support this. The GNU libc glob is gnulib's glob; they are essentially the same code. Also, GNU Make doesn't use gnulib's glob on any system which provides GNU libc. It has an autoconf check and uses the system libc if it's capable enough (in this case provides the callbacks needed for GNU Make to use its internal cache). Of course this could be changed if it seemed appropriate.