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 <jida...@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 >