On Fri, Dec 3, 2021 at 3:19 PM Ævar Arnfjörð Bjarmason <ava...@gmail.com> wrote:
>
> The motivation for this patch is that I've seen code like this in the
> wild:
>
>     FILES = $(sort $(wildcard t*.sh))
>
> I thought that it would be documented that that sort of thing was
> redundant, but I didn't find any mention of it in the manual.

Just for reference, the output of $(wildcard) wasn't sorted before
make 4.3. As stated in the relevant bug report:
https://savannah.gnu.org/bugs/index.php?52076
the code you spotted in the wild is in fact the most portable use of
wildcard when the order matters.

Regards,
- Jouke

Reply via email to