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)?
David On Mon, Jul 17, 2023 at 3:35 AM Andreas Schwab <sch...@suse.de> wrote: > On Jul 16 2023, Alejandro Colomar wrote: > > > However, after the suggestion from Torbjörn, I've picked this workaround > > to reduce the code. It ended up being as small as this: > > > > MK := \ > > $(srcdir)/Makefile \ > > $(wildcard $(MAKEFILEDIR)/*.mk $(MAKEFILEDIR)/*/*.mk > $(MAKEFILEDIR)/*/*/*.mk) > > $(wildcard $(addprefix $(MAKEFILEDIR)/, *.mk */*.mk */*/*.mk)) > > -- > Andreas Schwab, SUSE Labs, sch...@suse.de > GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 > "And now for something completely different." > >