git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCHv2] Makefile: implement help target

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 29, 2010, 15:41 UTC
Message-ID
<7vhbh8r1zj.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20100929073400.GA28010@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 6 quoted lines
> What I was trying to say was more that alphabetical is not necessarily
> the most useful order to present things in the help screen. Probably
> there is some hand-selected order that presents the entries in the least
> confusing way. And one way of representing that is to have the topics in
> that order in the Makefile, which in theory probably makes reading the
> Makefile itself simpler.
I agree with this, even though I do not feel _too_ strongly about it.
By the way, while we are at adding "make help" support...
With help annotations in the Makefile like this:
        # Help: install everything
        # - the user visible commands go to $(bindir)
        # - helper programs go to $(gitexec_instdir)
        # - templates go to $(template_instdir)
        install: all
                $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)'
I imagine it would be really cool if "make help" said something like this:
    $ make help
    ...
    install:
      install everything
      - the user visible commands go to $(bindir) = /home/junio/bin
      - helper commands go to $(gitexec_instdir) = /home/junio/libexec/git-core
      - templates go to $(template_instdir) = /home/junio/share/git-core/templates

to help the builder figuring out what make variable(s) to tweak. To be useful, I think you would need to show the expansion, though. E.g.

    - the user visible commands go to $(bindir) = /home/junio/bin
        bindir = $(prefix)/$(bindir_relative)
        prefix = $HOME
        HOME = /home/junio
        bindir_relative = bin
But again, I do not feel strongly about it either.
Previous: Jeff KingNext: Michael J Gruber
Message 20 of 24 in “Makefile: Add help target”
  1. Makefile: Add help targetStephen Boyd, Sep 28, 2010
  2. Junio C HamanoSep 28, 2010
  3. Sverre RabbelierSep 28, 2010
  4. Andreas EricssonSep 28, 2010
  5. Makefile: implement help targetMichael J Gruber, Sep 28, 2010
  6. Sverre RabbelierSep 28, 2010
  7. Zbyszek SzmekSep 28, 2010
  8. Ævar Arnfjörð BjarmasonSep 28, 2010
  9. Junio C HamanoSep 28, 2010
  10. Michael J GruberSep 28, 2010
  11. Ævar Arnfjörð BjarmasonSep 28, 2010
  12. [PATCHv2] Makefile: implement help targetMichael J Gruber, Sep 28, 2010
  13. Sverre RabbelierSep 28, 2010
  14. Jakub NarebskiSep 28, 2010
  15. Brandon CaseySep 28, 2010
  16. Michael J GruberSep 29, 2010
  17. Jeff KingSep 29, 2010
  18. Michael J GruberSep 29, 2010
  19. Jeff KingSep 29, 2010
  20. Junio C HamanoSep 29, 2010
  21. [PATCHv3] Makefile: implement help targetMichael J Gruber, Sep 29, 2010
  22. Junio C HamanoSep 29, 2010
  23. Michael J GruberSep 30, 2010
  24. yj2133011Sep 29, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.