From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjqNZ-0007eZ-No for qemu-devel@nongnu.org; Tue, 13 Sep 2016 12:16:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjqNT-0002lC-Mu for qemu-devel@nongnu.org; Tue, 13 Sep 2016 12:16:12 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:37670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjqNS-0002j3-Qa for qemu-devel@nongnu.org; Tue, 13 Sep 2016 12:16:07 -0400 Received: by mail-wm0-f52.google.com with SMTP id c131so120886463wmh.0 for ; Tue, 13 Sep 2016 09:16:06 -0700 (PDT) References: <20160913142033.7705-1-marcandre.lureau@redhat.com> From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <20160913142033.7705-1-marcandre.lureau@redhat.com> Date: Tue, 13 Sep 2016 17:15:04 +0100 Message-ID: <87fup3wzcn.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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 Cc: qemu-devel@nongnu.org, pbonzini@redhat.com, peter.maydell@linaro.org Marc-André Lureau 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 > --- > 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