[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wildcard and globstar

From: David Boyce
Subject: Re: wildcard and globstar
Date: Mon, 17 Jul 2023 09:02:00 -0400

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)?


On Mon, Jul 17, 2023 at 3:35 AM Andreas Schwab <schwab@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, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]