From: Michael J Gruber <git@drmicha.warpmail.net>
To: Brandon Casey <brandon.casey.ctr@nrlssc.navy.mil>
Cc: git@vger.kernel.org, "Junio C Hamano" <gitster@pobox.com>,
"Stephen Boyd" <bebarino@gmail.com>,
"Andreas Ericsson" <ae@op5.se>,
"Sverre Rabbelier" <srabbelier@gmail.com>,
"Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Subject: Re: [PATCHv2] Makefile: implement help target
Date: Wed, 29 Sep 2010 10:06:05 +0200 [thread overview]
Message-ID: <4CA2F36D.2010901@drmicha.warpmail.net> (raw)
In-Reply-To: <r6bnW3ubJQeOuXWFRPisJu1hXBq3kXeHCvNe10M00ZM@cipher.nrlssc.navy.mil>
Brandon Casey venit, vidit, dixit 29.09.2010 00:00:
> On 09/28/2010 03:38 PM, Michael J Gruber wrote:
>> with automatic help text collection from lines starting with "# Help: " and
>> preceding a make target.
>>
>> Suggested-by: Stephen Boyd <bebarino@gmail.com>
>> Helped-by: Andreas Ericsson <andreas.ericsson@op5.se>
>> Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
>> ---
>> Now how's this for portability and such? New output:
>>
>> Build targets:
>> all: Build the Git suite
>> dist: Build git-$(GIT_VERSION).tar.gz source
>> dist-doc: Build $(manpages).tar.gz and $(htmldocs).tar.gz
> <snip>
>
>> Makefile | 43 +++++++++++++++++++++++++++++++++++++++++--
>> 1 files changed, 41 insertions(+), 2 deletions(-)
>
>
> Very nice. Too bad we have more targets than fit in my 33-line terminal.
>
> /bikeshed
>
> How about this micro-tweak:
>
> 1) Remove the colon from the targets so they sort correctly.
> i.e. so "dist" sorts before "dist-doc" and "install" sorts
> before "install-*"
> 2) Add " - " prefix to description strings and reduce target
> width accordingly so we still have just as much room for
> the description string.
>
> So the output looks like this:
>
....
> Install targets:
> install - Install the Git suite
> install-doc - Install man pages
> install-html - Install HTML docs
> install-info - Install info docs
> install-man - Install man pages
> install-pdf - Install PDF docs
> quick-install-doc - Install pregenerated man pages from origin/man
> quick-install-html - Install pregenerated HTML pages from origin/html
> quick-install-man - Install pregenerated man pages from origin/man
Sounds good, although the sort order depends on the locale. "LANG=C
sort" takes care of that.
> Oh, by the way, tested and works on Solaris 10 and IRIX 6.5.
Thanks!
Michael
next prev parent reply other threads:[~2010-09-29 8:06 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-28 8:13 [PATCH] Makefile: Add help target Stephen Boyd
2010-09-28 9:45 ` Junio C Hamano
2010-09-28 11:37 ` Sverre Rabbelier
2010-09-28 12:35 ` Andreas Ericsson
2010-09-28 14:44 ` [PATCH] Makefile: implement " Michael J Gruber
2010-09-28 14:48 ` Sverre Rabbelier
2010-09-28 14:57 ` Zbyszek Szmek
2010-09-28 14:54 ` Ævar Arnfjörð Bjarmason
2010-09-28 15:33 ` Junio C Hamano
2010-09-28 15:47 ` Michael J Gruber
2010-09-28 16:04 ` Ævar Arnfjörð Bjarmason
2010-09-28 20:38 ` [PATCHv2] " Michael J Gruber
2010-09-28 20:51 ` Sverre Rabbelier
2010-09-28 21:24 ` Jakub Narebski
2010-09-28 22:00 ` Brandon Casey
2010-09-29 8:06 ` Michael J Gruber [this message]
2010-09-29 5:16 ` Jeff King
2010-09-29 7:03 ` Michael J Gruber
2010-09-29 7:34 ` Jeff King
2010-09-29 15:41 ` Junio C Hamano
2010-09-29 20:15 ` [PATCHv3] " Michael J Gruber
2010-09-29 20:39 ` Junio C Hamano
2010-09-30 7:08 ` Michael J Gruber
2010-09-29 6:10 ` [PATCH] Makefile: Add " yj2133011
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CA2F36D.2010901@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=ae@op5.se \
--cc=avarab@gmail.com \
--cc=bebarino@gmail.com \
--cc=brandon.casey.ctr@nrlssc.navy.mil \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=srabbelier@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.