[bug #64571] Add option to print targets

Giacomo Lorenzetti <[email protected]> Fri, 24 Jul 2026 13:00:26 -0400 (EDT)
Newsgroups gmane.comp.gnu.make.bugs
Message-ID <[email protected]>
--8323329-1102520059-1784912426=:297775
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

Follow-up Comment #19, bug #64571 (group make):=0A=0AAnswering comment #16 =
on the use case of this feature: we are developing a=0AData Processing Pipe=
line using Make (via https://maneage.org/), and we are=0Ausing a simple "li=
st of targets" that can be produced with this feature in a=0Ascript that wi=
ll report the percent of targets that have been completed at any=0Amoment (=
our pipeline needs several hours to complete).  =0A=0AThe script is current=
ly using regex matching (which is not ideal as mentioned=0Ain the first com=
ment) over the output of Make as shown below. =0A=0A=0Amake -nd --no-builti=
n-rules --no-builtin-variables=0A=0A=0AHowever, some of our Makefiles conta=
in $(MAKE) in their recipes, so a work=0Aaround is currently necessary with=
 version 4.4.1. After seeing this thread, we=0Acloned the current Make mast=
er branch (commit b3802782) and tested it on the=0Afollowing minimal Makefi=
le to confirm that it works perfectly. :-D=0A=0A=0Att=3Db.fits=0A$(tt): a.f=
its=0A=09$(MAKE) -f junk.mk=0A=0Aa.fits: =0A=09echo "abc"=0A=0A=0ARegarding=
 a "full post-processed make database" (for example in JSON), it=0Awould re=
ally help us in further extending the progress and profiling reports=0Aof o=
ur pipeline.=0A=0AWe are really looking forward to the next stable release =
of Make that includes=0A--print-targets.=0A=0A=0A    ______________________=
_________________________________=0A=0AReply to this item at:=0A=0A  <https=
://savannah.gnu.org/bugs/?64571>=0A=0A_____________________________________=
__________=0AMensaje enviado v=C3=ADa Savannah=0Ahttps://savannah.gnu.org/=
=0A
--8323329-1102520059-1784912426=:297775
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCamOaKgAKCRCqLAuaBUf3
TmVMAPsE3XRCBMfBlPH20VjR1iTLu23vJME7icS1FzYp1TatggEAh/OjuWqPViI2
wV2Xk0A/9WGjRMO1KeqRxGw4Xo2GfQc=
=jV1a
-----END PGP SIGNATURE-----

--8323329-1102520059-1784912426=:297775--