Received: from eggs.gnu.org ([2001:4830:134:3::10]:39419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk7Ru-00010w-09 for qemu-devel@nongnu.org; Wed, 14 Sep 2016 06:29:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bk7Rq-0002lu-Qz for qemu-devel@nongnu.org; Wed, 14 Sep 2016 06:29:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bk7Rq-0002lH-Lw for qemu-devel@nongnu.org; Wed, 14 Sep 2016 06:29:46 -0400 References: <20160913142033.7705-1-marcandre.lureau@redhat.com> From: Paolo Bonzini Message-ID: <4defb08c-f95c-6875-1471-3f8f85d9be09@redhat.com> Date: Wed, 14 Sep 2016 12:29:40 +0200 MIME-Version: 1.0 In-Reply-To: <20160913142033.7705-1-marcandre.lureau@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2] build-sys: add make 'help' target List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org On 13/09/2016 16:20, Marc-Andr=C3=A9 Lureau wrote: > Add a make 'help', to print a summary of the main Makefile targets. > The format is loosely inspired by Linux make 'help' output. >=20 > Signed-off-by: Marc-Andr=C3=A9 Lureau > --- > Makefile | 38 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) >=20 > v2: > - add architectures targets > - move generic targets on top, 'all' first > - better describe 'docker' help target >=20 > diff --git a/Makefile b/Makefile > index 50b4b3a..03dbec2 100644 > --- a/Makefile > +++ b/Makefile > @@ -669,3 +669,41 @@ endif > -include $(wildcard *.d tests/*.d) > =20 > 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 D= ocker containers' > + @echo ' test/speed - Run TCG tests' Removed this according to Alex's suggestion and queued for 2.8. Paolo > + @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=3D0|1 [targets] 0 =3D> quiet build (default), 1 =3D>= verbose build' >=20