On Sun, Jul 16, 2023 at 4:59 PM Alejandro Colomar wrote:
> I'm still interested in globstar support, though. It would make that
> line shorter and more robust. Maybe you could add an option
> --glob=globstar or similar to enable support.
gmake does not keep its own impl of glob. It uses a copy
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 t
On 2023-07-17 09:34, Andreas Schwab 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 $(MAKEFILEDI
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 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)/*/*
Hi!
On 2023-07-16 18:31, Dmitry Goncharov wrote:
> On Sun, Jul 16, 2023 at 10:49 AM Alejandro Colomar wrote:
>> I guess I'd need some kind of globstar support in GNU Make to be able
>> to use that
>
> Do you mean you need to find .mk files in subdirectories at different
> depth levels?
> mk:=$(w
On Sun, Jul 16, 2023 at 10:49 AM Alejandro Colomar wrote:
> I guess I'd need some kind of globstar support in GNU Make to be able
> to use that
Do you mean you need to find .mk files in subdirectories at different
depth levels?
mk:=$(wildcard */*/*.mk */*.mk *.mk)
regards, Dmitry