bug-make
[Top][All Lists]
Advanced

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

[bug #64571] Add option to print targets


From: Tim
Subject: [bug #64571] Add option to print targets
Date: Sat, 6 Jan 2024 16:16:00 -0500 (EST)

Follow-up Comment #7, bug#64571 (group make):

To be honest I'm not sure I know enough about Make to answer in detail, but
generally people want to know targets for which they might actually type `make
thetarget`, so:

> I assume users only care about explicit targets, not implicit targets
(patterns etc.)

Yeah, we don't want to see a list of `.o` files.

> Are people hoping to see all possible targets that the makefile could build,
even intermediate targets?

Yes. It's pretty common to have an "all" target that builds everything, so if
you don't show intermediate targets then it would just print "all" which is
not very helpful.

> Do people want to see phony targets?

Yes.

> Only targets that have recipes, or all prerequisites as well (a prerequisite
is also considered a target by make of course)?

Not 100% sure what this one means, sorry!

> I suppose we can just do whatever is simple and if people aren't happy with
the results they can revert to whatever they were doing before.

Sounds like a good plan to me! I guess you can always add flags to refine the
behaviour later if necessary, but hopefully that won't be required.

I guess it might be worth us constructing a concrete test Makefile and
deciding what it would show? 


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64571>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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