Re: [PATCH] Makefile: implement help target

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

 



On Tue, Sep 28, 2010 at 14:44, Michael J Gruber
<git@xxxxxxxxxxxxxxxxxxxx> wrote:

> +#H# Check test coverage and create HTMl report

HTML, not HTMl

> Âcover_db_html: cover_db
> Â Â Â Âcover -report html -outputdir cover_db_html cover_db
> +
> +#H# Show help for main make targets

How about something less opaque, like "# Help: Show help [...]" or "#
About:". It would serve the same purpose as #H#, without the reader
wondering what that odd string means.

> +help:
> + Â Â Â @sed -n Â-e '/^#H#/ {N'\
> + Â Â Â Â Â Â Â -e 's/^#H# \(.*\)\n\([a-z0-9_-]*\):.*/\2 \1/p'\
> + Â Â Â Â Â Â Â -e '}' <Makefile | sort --key=2 | while read target txt;\
> + Â Â Â do \
> + Â Â Â Â Â Â Â printf "%-20s: %s\n" "$$target" "$$txt"; \
> + Â Â Â done

Looks good, but --key=2 isn't in POSIX.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]