[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: |
Thu, 16 Nov 2023 04:11:00 -0500 (EST) |
Follow-up Comment #4, bug #64571 (project make):
> I'm just not really that convinced that the simplest thing is going to be
useful to people.
People are already using hacky regexes which are even less useful.
> even internal ones etc
Yeah there were some internal targets that I didn't want to show but couldn't
figure out how to do it. If you can help that would be great!
> Even in the comments below someone suggested "especially for phony targets"
I think they meant targets that are *marked* as phony, not the .PHONY target
itself?
> make -pn | sed -n 's/^\([^#][^=]*:\).*/\1/p;'
Hacks like this not working is what finally motivated me to write this patch.
Try it in this directory:
https://github.com/riscv-software-src/riscv-tests/tree/master/isa
Regex version output:
https://gist.github.com/Timmmm/519aeee5f24658855f2f6fb9359643e3
My patch output:
https://gist.github.com/Timmmm/85acf0ab3f00c9a1780579946823d1bb
I feel like I may have missed the point you're making here though. (Note I'm
not remotely a Make expert!)
> I'm just skeptical that this wouldn't degenerate into a morass of
conflicting requests for new features.
Maybe. But this is clearly a highly demanded feature just for
auto-complete/discovery. Seems mean to deny it just because people might ask
for other things too.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64571>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/