[bug #64571] Add option to print targets

2024-01-09 Thread Tim
Follow-up Comment #18, bug#64571 (group make): Amazing, thank you Paul! And I agree with David A. Wheeler - this option makes sense for things like command line autocomplete. JSON makes sense for things like IDE integration. ___ Reply to

[bug #64571] Add option to print targets

2024-01-08 Thread Paul D. Smith
Update of bug#64571 (group make): Status:None => Fixed Assigned to:None => psmith Open/Closed:Open => Closed Operating System:

[bug #64571] Add option to print targets

2024-01-08 Thread David A. Wheeler
Follow-up Comment #16, bug#64571 (group make): I think it's important to identify "what is the use case" before adding options. I think there are two different use cases that are getting conflated. I suggest supporting two different options for the two cases. 1. "Give me the list of targets of

[bug #64571] Add option to print targets

2024-01-08 Thread Paul D. Smith
Follow-up Comment #15, bug#64571 (group make): Just to point out, GNU Make doesn't provide any support for autocompletion in its package. Any autocompletion that is available is provided by other packages, for example the bash-completion package: $ head -n1

Re: [bug #64571] Add option to print targets

2024-01-08 Thread Martin Dorey
...@gnu.org ; bo...@kolpackov.net ; bug-make@gnu.org Subject: [bug #64571] Add option to print targets * EXTERNAL EMAIL * Follow-up Comment #14, bug#64571 (group make): I think JSON would be a good solution. > (b) these tools (like jq for example) are not part of most standard systems and

[bug #64571] Add option to print targets

2024-01-08 Thread Tim
Follow-up Comment #14, bug#64571 (group make): I think JSON would be a good solution. > (b) these tools (like jq for example) are not part of most standard systems and so can't be relied on to exist everywhere, It's no harder to install `jq` than it is to install `make` these days, even on

[bug #64571] Add option to print targets

2024-01-07 Thread Paul D. Smith
Follow-up Comment #13, bug#64571 (group make): It depends on what you mean by "this context". If what we are suggesting is to use this new JSON output format so that we don't need to create an option to print targets, then it's very relevant since the goal of this option is to provide input for

[bug #64571] Add option to print targets

2024-01-07 Thread Benjamin Tilley
Follow-up Comment #12, bug#64571 (group make): Wow, that's great stuff from Tim. I was really re-treading his steps there, even with the same flag name `--print-data-base-json`! Definitely valid limitations of nested JSON, very tricky to parse without the right tools. However, in this context,

[bug #64571] Add option to print targets

2024-01-07 Thread Paul D. Smith
Follow-up Comment #11, bug#64571 (group make): Tim Murphy had a proposal and even a patch to generate JSON, posted to bug-make a few weeks ago: https://lists.gnu.org/archive/html/bug-make/2023-12/msg00027.html Overall I like JSON but I'm not convinced it will be as helpful for this situation.

[bug #64571] Add option to print targets

2024-01-07 Thread Benjamin Tilley
Follow-up Comment #10, bug#64571 (group make): @psmith, just missed your comment while I was writing mine :) Seems like we were thinking in a similar direction, I agree the `--format` option is a good fit with how other tools handle this. When I get a chunk of time, I can put in a proposal for

[bug #64571] Add option to print targets

2024-01-07 Thread Benjamin Tilley
Follow-up Comment #9, bug#64571 (group make): I had a thought about how this could be approached in a different way. As has been mentioned, we already have a lot of information available about targets (also variables and other info) via the `--print-data-base` flag. It's just that as it

[bug #64571] Add option to print targets

2024-01-07 Thread Paul D. Smith
Follow-up Comment #8, bug#64571 (group make): Let me just say up-front that my biggest concern with this is going in the direction you suggest: > I guess you can always add flags to refine the behaviour later if necessary Just... no. I won't introduce an entire family of options that tweak and

[bug #64571] Add option to print targets

2024-01-06 Thread Tim
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

[bug #64571] Add option to print targets

2024-01-06 Thread Paul D. Smith
Follow-up Comment #6, bug#64571 (group make): I have asked below, and I'm still waiting for an answer. Until there's some agreement on the answer, I don't see how we can move forward no matter how many "hacky solutions" exist in the wild. In fact, the more "hacky solutions" there are the LESS

[bug #64571] Add option to print targets

2024-01-04 Thread Miguel Moreno
Follow-up Comment #5, bug#64571 (group make): This is definitely a (implicitly) highly requested feature. As Tim has already explained, users are currently using tons of hacky solutions which are not 100% reliable. Having an "official" targets list created by 'make' itself shall be the

Re: [bug #64571] Add option to print targets

2023-11-16 Thread Tim Murphy
On Thu, 16 Nov 2023 at 09:11, Tim wrote: > Follow-up Comment #4, bug #64571 (project make): > > > > 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 >

[bug #64571] Add option to print targets

2023-11-16 Thread Tim
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

Re: [bug #64571] Add option to print targets

2023-11-02 Thread Dmitry Goncharov
On Wed, Nov 1, 2023 at 10:26 AM Tim Murphy wrote: > Perhaps make could do with some sort of plugin mechanism? I know it has the > load keyword within makefiles but I'm not sure if functions have access to > enough global state to e.g. print out a list of targets. Currently there is no

Re: [bug #64571] Add option to print targets

2023-11-01 Thread Tim Murphy
On Wed, 1 Nov 2023 at 13:58, Paul D. Smith wrote: > GNU Make is used by so many people for so many things, and I'm leery of > creating some new facility that ends up being "not really right" for what > people want to do, but that then must be maintained forever going forward. > It seems to me

[bug #64571] Add option to print targets

2023-11-01 Thread Paul D. Smith
Follow-up Comment #3, bug #64571 (project make): This is the right place for patches. I did look at this patch; it's not quite right (IIRC) but of course it could be adjusted relatively straightforwardly. The hard thing about this request is not the code. The hard thing is the design. I'm

[bug #64571] Add option to print targets

2023-11-01 Thread Tim
Follow-up Comment #2, bug #64571 (project make): @mrsquee yeah I also found it confusing since there are some open patches but "Submit new" is disabled with no clue why. I think I read somewhere that they want you to just submit bugs with a patch attached, so that's what I did. Very unintuitive.

Re: [bug #64571] Add option to print targets

2023-10-31 Thread Bahman Movaqar
On Tue, 2023-10-31 at 17:14 -0400, Benjamin Tilley wrote: > Follow-up Comment #1, bug #64571 (project make): > > I'm also interested in this feature. I often find when coming back to > an old > project I want a quick way to list the possible targets so that I > remember > what `make` invocation I

[bug #64571] Add option to print targets

2023-10-31 Thread Benjamin Tilley
Follow-up Comment #1, bug #64571 (project make): I'm also interested in this feature. I often find when coming back to an old project I want a quick way to list the possible targets so that I remember what `make` invocation I should run. Especially for .PHONY targets that are just performing some

[bug #64571] Add option to print targets

2023-08-19 Thread Tim
URL: Summary: Add option to print targets Group: make Submitter: ti Submitted: Sat 19 Aug 2023 05:49:19 PM UTC Severity: 3 - Normal Item Group: Enhancement