From: "Alex Bennée" <alex.bennee@linaro.org>
To: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, peter.maydell@linaro.org
Subject: Re: [Qemu-devel] [PATCH v2] build-sys: add make 'help' target
Date: Tue, 13 Sep 2016 17:15:04 +0100 [thread overview]
Message-ID: <87fup3wzcn.fsf@linaro.org> (raw)
In-Reply-To: <20160913142033.7705-1-marcandre.lureau@redhat.com>
Marc-André Lureau <marcandre.lureau@redhat.com> writes:
> Add a make 'help', to print a summary of the main Makefile targets.
> The format is loosely inspired by Linux make 'help' output.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> Makefile | 38 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 38 insertions(+)
>
> v2:
> - add architectures targets
> - move generic targets on top, 'all' first
> - better describe 'docker' help target
>
> diff --git a/Makefile b/Makefile
> index 50b4b3a..03dbec2 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -669,3 +669,41 @@ endif
> -include $(wildcard *.d tests/*.d)
>
> include $(SRC_PATH)/tests/docker/Makefile.include
> +
> +.PHONY: help
> +help:
> + @echo 'Generic targets:'
> + @echo ' all - Build all'
> + @echo ' dir/file.o - Build specified target only'
> + @echo ' install - Install QEMU, documentation and tools'
> + @echo ' ctags/TAGS - Generate tags file for editors'
> + @echo ' cscope - Generate cscope index'
> + @echo ''
> + @$(if $(TARGET_DIRS), \
> + echo 'Architecture specific targets:'; \
> + $(foreach t, $(TARGET_DIRS), \
> + printf " %-30s - Build for %s\\n" $(patsubst %,subdir-%,$(t)) $(t);) \
> + echo '')
> + @echo 'Cleaning targets:'
> + @echo ' clean - Remove most generated files but keep the config'
> + @echo ' distclean - Remove all generated files'
> + @echo ' dist - Build a distributable tarball'
> + @echo ''
> + @echo 'Test targets:'
> + @echo ' check - Run all tests (check-help for details)'
> + @echo ' docker - Help about targets running tests inside Docker containers'
> + @echo ' test/speed - Run TCG tests'
I wouldn't mention the TCG tests until we've actually fixed them up.
> + @echo ''
> + @echo 'Documentation targets:'
> + @echo ' dvi/html/'
> + @echo ' info/pdf - Build documentation in specified format'
> + @echo ''
> +ifdef CONFIG_WIN32
> + @echo 'Windows targets:'
> + @echo ' installer - Build NSIS-based installer for qemu-ga'
> +ifdef QEMU_GA_MSI_ENABLED
> + @echo ' msi - Build MSI-based installer for qemu-ga'
> +endif
> + @echo ''
> +endif
> + @echo ' make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build'
--
Alex Bennée
next prev parent reply other threads:[~2016-09-13 16:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-13 14:20 [Qemu-devel] [PATCH v2] build-sys: add make 'help' target Marc-André Lureau
2016-09-13 16:15 ` Alex Bennée [this message]
2016-09-14 10:29 ` Paolo Bonzini
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=87fup3wzcn.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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.