Yes but the Perl option is not good enough when there are dynamically
generated targets or when there are includes.
On Fri, Apr 2, 2021 at 6:01 AM 積丹尼 Dan Jacobson wrote:
> > "PD" == Pete Dietl writes:
> PD> Perhaps a better option would be to make an option to list all
> PD> targets.
>
> T
> "PD" == Pete Dietl writes:
PD> Perhaps a better option would be to make an option to list all
PD> targets.
That would just be e.g.,
perl -nwle 'print for /^\w+:/g;'
PD> Then one can grep to select ones in any which way.
Well OK, I guess all this won't be needing make to add such features
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 wrote:
>
> Let's take Makefile:
>
> alzu:; echo $@
> Blibco:; echo $@
> Norfowitz; echo $@
> nillsburg; echo $@
>
> Well let'
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
regexp