bug-make
[Top][All Lists]
Advanced

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

Re: Implement make --all-targets-matching-regexp


From: Pete Dietl
Subject: Re: Implement make --all-targets-matching-regexp
Date: Fri, 2 Apr 2021 03:12:31 -0700

Perhaps a better option would be to make an option to list all
targets. Then one can grep to select ones in any which way.

On Thu, Apr 1, 2021 at 11:52 PM 積丹尼 Dan Jacobson <jidanni@jidanni.org> wrote:
>
> Let's take Makefile:
>
> alzu:; echo $@
> Blibco:; echo $@
> Norfowitz; echo $@
> nillsburg; echo $@
>
> Well let's say we want to run all the capital letter items.
> We could use
> $ make Blibco Norfowitz
> but that isn't as smart as
> $ make --all-targets-matching-regexp '^[A-Z].*' #Or instead these kinds or 
> regexps:
> $ make --all-targets-matching-regexp '[A-Z]*'
>
> GNU Make 4.3
>



reply via email to

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