xref: /qemu/Makefile (revision 1023e003)
10cb3fb1eSpbrook# Makefile for QEMU.
20cb3fb1eSpbrook
34ace32e2SAntonio Ospiteifneq ($(words $(subst :, ,$(CURDIR))), 1)
44ace32e2SAntonio Ospite  $(error main directory cannot contain spaces nor colons)
54ace32e2SAntonio Ospiteendif
64ace32e2SAntonio Ospite
7519e1693SStefan Weil# Always point to the root of the build tree (needs GNU make).
8519e1693SStefan WeilBUILD_DIR=$(CURDIR)
9388d4758SLluís Vilanova
10eaa2ddbbSFam Zheng# Before including a proper config-host.mak, assume we are in the source tree
11eaa2ddbbSFam ZhengSRC_PATH=.
12eaa2ddbbSFam Zheng
13660f7930SPaolo Bonzini# Don't use implicit rules or variables
14660f7930SPaolo Bonzini# we have explicit rules for everything
15660f7930SPaolo BonziniMAKEFLAGS += -rR
16660f7930SPaolo Bonzini
173bf45835SPaolo BonziniSHELL = /usr/bin/env bash -o pipefail
183bf45835SPaolo Bonzini
19660f7930SPaolo Bonzini# Usage: $(call quiet-command,command and args,"NAME","args to print")
20660f7930SPaolo Bonzini# This will run "command and args", and either:
21660f7930SPaolo Bonzini#  if V=1 just print the whole command and args
22660f7930SPaolo Bonzini#  otherwise print the 'quiet' output in the format "  NAME     args to print"
23660f7930SPaolo Bonzini# NAME should be a short name of the command, 7 letters or fewer.
24660f7930SPaolo Bonzini# If called with only a single argument, will print nothing in quiet mode.
25660f7930SPaolo Bonziniquiet-command-run = $(if $(V),,$(if $2,printf "  %-7s %s\n" $2 $3 && ))$1
26660f7930SPaolo Bonziniquiet-@ = $(if $(V),,@)
27660f7930SPaolo Bonziniquiet-command = $(quiet-@)$(call quiet-command-run,$1,$2,$3)
28660f7930SPaolo Bonzini
2928fa2927SPhilippe Mathieu-DaudéUNCHECKED_GOALS := %clean TAGS cscope ctags dist \
30de1da442SMarc-André Lureau    help check-help print-% \
314f2f6276SPhilippe Mathieu-Daudé    docker docker-% vm-help vm-test vm-build-%
32eaa2ddbbSFam Zheng
332b8575bdSPaolo Bonziniall:
342b8575bdSPaolo Bonzini.PHONY: all clean distclean recurse-all dist msi FORCE
352b8575bdSPaolo Bonzini
362b8575bdSPaolo Bonzini# Don't try to regenerate Makefile or configure
372b8575bdSPaolo Bonzini# We don't generate any of them
382b8575bdSPaolo BonziniMakefile: ;
392b8575bdSPaolo Bonziniconfigure: ;
402b8575bdSPaolo Bonzini
41250b086eSLluís Vilanova# All following code might depend on configuration variables
4255d7e8f6Saurel32ifneq ($(wildcard config-host.mak),)
43ad064840Spbrookinclude config-host.mak
44d1bd2423SPeter Maydell
45aef45d51SDaniel P. Berrangegit-submodule-update:
462b8575bdSPaolo Bonzini.git-submodule-status: git-submodule-update config-host.mak
472b8575bdSPaolo BonziniMakefile: .git-submodule-status
48aef45d51SDaniel P. Berrange
49aef45d51SDaniel P. Berrange.PHONY: git-submodule-update
50aef45d51SDaniel P. Berrange
51aef45d51SDaniel P. Berrangegit_module_status := $(shell \
52aef45d51SDaniel P. Berrange  cd '$(SRC_PATH)' && \
53cc84d63aSDaniel P. Berrange  GIT="$(GIT)" ./scripts/git-submodule.sh status $(GIT_SUBMODULES); \
54aef45d51SDaniel P. Berrange  echo $$?; \
55aef45d51SDaniel P. Berrange)
56aef45d51SDaniel P. Berrange
57aef45d51SDaniel P. Berrangeifeq (1,$(git_module_status))
58f62bbee5SDaniel P. Berrangeifeq (no,$(GIT_UPDATE))
59f62bbee5SDaniel P. Berrangegit-submodule-update:
60f62bbee5SDaniel P. Berrange	$(call quiet-command, \
61f62bbee5SDaniel P. Berrange            echo && \
62f62bbee5SDaniel P. Berrange            echo "GIT submodule checkout is out of date. Please run" && \
63f62bbee5SDaniel P. Berrange            echo "  scripts/git-submodule.sh update $(GIT_SUBMODULES)" && \
64f62bbee5SDaniel P. Berrange            echo "from the source directory checkout $(SRC_PATH)" && \
65f62bbee5SDaniel P. Berrange            echo && \
66f62bbee5SDaniel P. Berrange            exit 1)
67f62bbee5SDaniel P. Berrangeelse
68aef45d51SDaniel P. Berrangegit-submodule-update:
69aef45d51SDaniel P. Berrange	$(call quiet-command, \
70cc84d63aSDaniel P. Berrange          (cd $(SRC_PATH) && GIT="$(GIT)" ./scripts/git-submodule.sh update $(GIT_SUBMODULES)), \
71aef45d51SDaniel P. Berrange          "GIT","$(GIT_SUBMODULES)")
72aef45d51SDaniel P. Berrangeendif
73aef45d51SDaniel P. Berrangeendif
74aef45d51SDaniel P. Berrange
7509e93326SPaolo Bonzini# 0. ensure the build tree is okay
76a5665051SPaolo Bonzini
77d1bd2423SPeter Maydell# Check that we're not trying to do an out-of-tree build from
78d1bd2423SPeter Maydell# a tree that's been used for an in-tree build.
79d1bd2423SPeter Maydellifneq ($(realpath $(SRC_PATH)),$(realpath .))
80d1bd2423SPeter Maydellifneq ($(wildcard $(SRC_PATH)/config-host.mak),)
81d1bd2423SPeter Maydell$(error This is an out of tree build but your source tree ($(SRC_PATH)) \
82d1bd2423SPeter Maydellseems to have been used for an in-tree build. You can fix this by running \
83b98a3baeSPhilippe Mathieu-Daudé"$(MAKE) distclean && rm -rf *-linux-user *-softmmu" in your source tree)
84d1bd2423SPeter Maydellendif
85d1bd2423SPeter Maydellendif
86d1bd2423SPeter Maydell
872b8575bdSPaolo Bonzini# force a rerun of configure if config-host.mak is too old or corrupted
882b8575bdSPaolo Bonziniifeq ($(MESON),)
892b8575bdSPaolo Bonzini.PHONY: config-host.mak
902b8575bdSPaolo Bonzinix := $(shell rm -rf meson-private meson-info meson-logs)
912b8575bdSPaolo Bonziniendif
922b8575bdSPaolo Bonziniifeq ($(NINJA),)
932b8575bdSPaolo Bonzini.PHONY: config-host.mak
942b8575bdSPaolo Bonzinix := $(shell rm -rf meson-private meson-info meson-logs)
955914ef77SPaolo Bonzinielse
965914ef77SPaolo Bonziniexport NINJA
972b8575bdSPaolo Bonziniendif
982b8575bdSPaolo Bonziniifeq ($(wildcard build.ninja),)
992b8575bdSPaolo Bonzini.PHONY: config-host.mak
1002b8575bdSPaolo Bonzinix := $(shell rm -rf meson-private meson-info meson-logs)
1012b8575bdSPaolo Bonziniendif
10216bf7a33SPaolo Bonziniifeq ($(origin prefix),file)
10316bf7a33SPaolo Bonzini.PHONY: config-host.mak
10416bf7a33SPaolo Bonzinix := $(shell rm -rf meson-private meson-info meson-logs)
10516bf7a33SPaolo Bonziniendif
1062b8575bdSPaolo Bonzini
10709e93326SPaolo Bonzini# 1. ensure config-host.mak is up-to-date
1083a6b016dSMarkus Armbrusterconfig-host.mak: $(SRC_PATH)/configure $(SRC_PATH)/pc-bios $(SRC_PATH)/VERSION
1095914ef77SPaolo Bonzini	@echo config-host.mak is out-of-date, running configure
110a5665051SPaolo Bonzini	@if test -f meson-private/coredata.dat; then \
111a5665051SPaolo Bonzini	  ./config.status --skip-meson; \
112a5665051SPaolo Bonzini	else \
1135914ef77SPaolo Bonzini	  ./config.status && touch build.ninja.stamp; \
114a5665051SPaolo Bonzini	fi
11526fffe29SEmilio G. Cota
1165914ef77SPaolo Bonzini# 2. meson.stamp exists if meson has run at least once (so ninja reconfigure
1175914ef77SPaolo Bonzini# works), but otherwise never needs to be updated
1185914ef77SPaolo Bonzinimeson-private/coredata.dat: meson.stamp
1195914ef77SPaolo Bonzinimeson.stamp: config-host.mak
1205914ef77SPaolo Bonzini	@touch meson.stamp
1215914ef77SPaolo Bonzini
1225914ef77SPaolo Bonzini# 3. ensure generated build files are up-to-date
12309e93326SPaolo Bonzini
12409e93326SPaolo Bonziniifneq ($(NINJA),)
12509e93326SPaolo BonziniMakefile.ninja: build.ninja
1265914ef77SPaolo Bonzini	$(quiet-@){ \
1275914ef77SPaolo Bonzini	  echo 'ninja-targets = \'; \
1285914ef77SPaolo Bonzini	  $(NINJA) -t targets all | sed 's/:.*//; $$!s/$$/ \\/'; \
1295914ef77SPaolo Bonzini	  echo 'build-files = \'; \
1305914ef77SPaolo Bonzini	  $(NINJA) -t query build.ninja | sed -n '1,/^  input:/d; /^  outputs:/q; s/$$/ \\/p'; \
1315914ef77SPaolo Bonzini	} > $@.tmp && mv $@.tmp $@
13209e93326SPaolo Bonzini-include Makefile.ninja
1335914ef77SPaolo Bonzini
1345914ef77SPaolo Bonzini# A separate rule is needed for Makefile dependencies to avoid -n
1355914ef77SPaolo Bonzinibuild.ninja: build.ninja.stamp
1365914ef77SPaolo Bonzinibuild.ninja.stamp: meson.stamp $(build-files)
1375914ef77SPaolo Bonzini	$(NINJA) $(if $V,-v,) build.ninja && touch $@
13809e93326SPaolo Bonziniendif
13909e93326SPaolo Bonzini
14009e93326SPaolo Bonziniifneq ($(MESON),)
1415914ef77SPaolo BonziniMakefile.mtest: build.ninja scripts/mtest2make.py
14209e93326SPaolo Bonzini	$(MESON) introspect --targets --tests --benchmarks | $(PYTHON) scripts/mtest2make.py > $@
14309e93326SPaolo Bonzini-include Makefile.mtest
14409e93326SPaolo Bonziniendif
14509e93326SPaolo Bonzini
1465914ef77SPaolo Bonzini# 4. Rules to bridge to other makefiles
14709e93326SPaolo Bonzini
14809e93326SPaolo Bonziniifneq ($(NINJA),)
149c8e6cfbaSPaolo BonziniMAKE.n = $(findstring n,$(firstword $(MAKEFLAGS)))
150c8e6cfbaSPaolo BonziniMAKE.k = $(findstring k,$(firstword $(MAKEFLAGS)))
151c8e6cfbaSPaolo BonziniMAKE.q = $(findstring q,$(firstword $(MAKEFLAGS)))
152c8e6cfbaSPaolo BonziniMAKE.nq = $(if $(word 2, $(MAKE.n) $(MAKE.q)),nq)
153c8e6cfbaSPaolo BonziniNINJAFLAGS = $(if $V,-v) $(if $(MAKE.n), -n) $(if $(MAKE.k), -k0) \
15409e93326SPaolo Bonzini        $(filter-out -j, $(lastword -j1 $(filter -l% -j%, $(MAKEFLAGS)))) \
15509e93326SPaolo Bonzini
15609e93326SPaolo Bonzinininja-cmd-goals = $(or $(MAKECMDGOALS), all)
15709e93326SPaolo Bonzinininja-cmd-goals += $(foreach t, $(.tests), $(.test.deps.$t))
15809e93326SPaolo Bonzini
15909e93326SPaolo Bonzinimakefile-targets := build.ninja ctags TAGS cscope dist clean uninstall
1605914ef77SPaolo Bonzini# "ninja -t targets" also lists all prerequisites.  If build system
1615914ef77SPaolo Bonzini# files are marked as PHONY, however, Make will always try to execute
1625914ef77SPaolo Bonzini# "ninja build.ninja".
1635914ef77SPaolo Bonzinininja-targets := $(filter-out $(build-files) $(makefile-targets), $(ninja-targets))
16409e93326SPaolo Bonzini.PHONY: $(ninja-targets) run-ninja
16509e93326SPaolo Bonzini$(ninja-targets): run-ninja
16609e93326SPaolo Bonzini
16709e93326SPaolo Bonzini# Use "| cat" to give Ninja a more "make-y" output.  Use "+" to bypass the
16809e93326SPaolo Bonzini# --output-sync line.
16909e93326SPaolo Bonzinirun-ninja: config-host.mak
17009e93326SPaolo Bonziniifneq ($(filter $(ninja-targets), $(ninja-cmd-goals)),)
171c8e6cfbaSPaolo Bonzini	+$(quiet-@)$(if $(MAKE.nq),@:, $(NINJA) \
172c8e6cfbaSPaolo Bonzini	   $(NINJAFLAGS) $(sort $(filter $(ninja-targets), $(ninja-cmd-goals))) | cat)
17309e93326SPaolo Bonziniendif
17409e93326SPaolo Bonziniendif
17509e93326SPaolo Bonzini
17626fffe29SEmilio G. Cota# Force configure to re-run if the API symbols are updated
17726fffe29SEmilio G. Cotaifeq ($(CONFIG_PLUGIN),y)
17826fffe29SEmilio G. Cotaconfig-host.mak: $(SRC_PATH)/plugins/qemu-plugins.symbols
179c17a386bSAlex Bennée
180c17a386bSAlex Bennée.PHONY: plugins
181c17a386bSAlex Bennéeplugins:
182c17a386bSAlex Bennée	$(call quiet-command,\
183c17a386bSAlex Bennée		$(MAKE) $(SUBDIR_MAKEFLAGS) -C contrib/plugins V="$(V)", \
184c17a386bSAlex Bennée		"BUILD", "example plugins")
1852b8575bdSPaolo Bonziniendif # $(CONFIG_PLUGIN)
18626fffe29SEmilio G. Cota
1872b8575bdSPaolo Bonzinielse # config-host.mak does not exist
18855d7e8f6Saurel32config-host.mak:
189eaa2ddbbSFam Zhengifneq ($(filter-out $(UNCHECKED_GOALS),$(MAKECMDGOALS)),$(if $(MAKECMDGOALS),,fail))
19055d7e8f6Saurel32	@echo "Please call configure before running make!"
19155d7e8f6Saurel32	@exit 1
19255d7e8f6Saurel32endif
1932b8575bdSPaolo Bonziniendif # config-host.mak does not exist
194766a487aSbellard
195660f7930SPaolo BonziniSUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory --quiet)
196a992fe3dSPaul Brook
19746e7b706SFam Zhenginclude $(SRC_PATH)/tests/Makefile.include
198992aeb8eSPaolo Bonzini
199484e2cc7SPaolo Bonziniall: recurse-all
200675b9b53SMarc-André Lureau
2013b8593eeSMarkus ArmbrusterROM_DIRS = $(addprefix pc-bios/, $(ROMS))
2021338a4b7SMarkus ArmbrusterROM_DIRS_RULES=$(foreach t, all clean, $(addsuffix /$(t), $(ROM_DIRS)))
203a9c87304SMarc-André Lureau# Only keep -O and -g cflags
2041338a4b7SMarkus Armbruster.PHONY: $(ROM_DIRS_RULES)
2051338a4b7SMarkus Armbruster$(ROM_DIRS_RULES):
20649b7d744SPaolo Bonzini	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $(dir $@) V="$(V)" TARGET_DIR="$(dir $@)" $(notdir $@),)
207c05ac895SPaul Brook
2085e6d1573SPaolo Bonzini.PHONY: recurse-all recurse-clean
20949b7d744SPaolo Bonzinirecurse-all: $(addsuffix /all, $(ROM_DIRS))
2105e6d1573SPaolo Bonzinirecurse-clean: $(addsuffix /clean, $(ROM_DIRS))
2114aa42531Spbrook
2123bc2f570SPaolo Bonzini######################################################################
2134fb240a4Sbellard
21409e93326SPaolo Bonziniclean: recurse-clean
215*1023e003SPaolo Bonzini	-$(quiet-@)test -f build.ninja && $(NINJA) $(NINJAFLAGS) -t clean || :
216*1023e003SPaolo Bonzini	-$(quiet-@)test -f build.ninja && $(NINJA) $(NINJAFLAGS) clean-ctlist || :
2172d80ae89Sbellard# avoid old build problems by removing potentially incorrect old files
21825be210fSJuan Quintela	rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
219484e2cc7SPaolo Bonzini	find . \( -name '*.so' -o -name '*.dll' -o -name '*.[oda]' \) -type f \
22023858f40SLaszlo Ersek		! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-aarch64.a \
22123858f40SLaszlo Ersek		! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-arm.a \
22223858f40SLaszlo Ersek		-exec rm {} +
223c3a0ee84SPaolo Bonzini	rm -f TAGS cscope.* *.pod *~ */*~
224b855f8d1SPaolo Bonzini	rm -f fsdev/*.pod scsi/*.pod
22531e31b8aSbellard
226859aef02SPaolo BonziniVERSION = $(shell cat $(SRC_PATH)/VERSION)
22734bb443eSAnthony Liguori
22834bb443eSAnthony Liguoridist: qemu-$(VERSION).tar.bz2
22934bb443eSAnthony Liguori
23034bb443eSAnthony Liguoriqemu-%.tar.bz2:
23134bb443eSAnthony Liguori	$(SRC_PATH)/scripts/make-release "$(SRC_PATH)" "$(patsubst qemu-%.tar.bz2,%,$@)"
23234bb443eSAnthony Liguori
23309e93326SPaolo Bonzinidistclean: clean
234*1023e003SPaolo Bonzini	-$(quiet-@)test -f build.ninja && $(NINJA) $(NINJAFLAGS) -t clean -g || :
235acfdaac5SPaolo Bonzini	rm -f config-host.mak config-host.h*
2362038f8c8SPaolo Bonzini	rm -f tests/tcg/config-*.mak
2372becc36aSPaolo Bonzini	rm -f config-all-disas.mak config.status
238e8f3bd71SMarc-André Lureau	rm -f tests/qemu-iotests/common.env
239fc8e320eSMagnus Damm	rm -f roms/seabios/config.mak roms/vgabios/config.mak
24026fffe29SEmilio G. Cota	rm -f qemu-plugins-ld.symbols qemu-plugins-ld64.symbols
24164ed6f92SPaolo Bonzini	rm -f *-config-target.h *-config-devices.mak *-config-devices.h
242a5665051SPaolo Bonzini	rm -rf meson-private meson-logs meson-info compile_commands.json
2435914ef77SPaolo Bonzini	rm -f Makefile.ninja Makefile.mtest build.ninja.stamp meson.stamp
244793553acSAlexandre Raymond	rm -f config.log
24567ed96f9SPeter Maydell	rm -f linux-headers/asm
246d9840e25STomoki Sekiyama	rm -Rf .sdk
2477d13299dSbellard
248018da279SGreg Kurzfind-src-path = find "$(SRC_PATH)/" -path "$(SRC_PATH)/meson" -prune -o \( -name "*.[chsS]" -o -name "*.[ch].inc" \)
249c857f905SGreg Kurz
250d7986405SGreg Kurz.PHONY: ctags
251d7986405SGreg Kurzctags:
252e90df5eaSGreg Kurz	rm -f "$(SRC_PATH)/"tags
253e90df5eaSGreg Kurz	$(find-src-path) -exec ctags -f "$(SRC_PATH)/"tags --append {} +
254d7986405SGreg Kurz
255d7986405SGreg Kurz.PHONY: TAGS
256d7986405SGreg KurzTAGS:
257e90df5eaSGreg Kurz	rm -f "$(SRC_PATH)/"TAGS
258e90df5eaSGreg Kurz	$(find-src-path) -exec etags -f "$(SRC_PATH)/"TAGS --append {} +
259d7986405SGreg Kurz
260d7986405SGreg Kurz.PHONY: cscope
261d7986405SGreg Kurzcscope:
262d7986405SGreg Kurz	rm -f "$(SRC_PATH)"/cscope.*
263c857f905SGreg Kurz	$(find-src-path) -print | sed -e 's,^\./,,' > "$(SRC_PATH)/cscope.files"
264e90df5eaSGreg Kurz	cscope -b -i"$(SRC_PATH)/cscope.files" -f"$(SRC_PATH)"/cscope.out
265d7986405SGreg Kurz
266a5665051SPaolo Bonzini# Needed by "meson install"
267a5665051SPaolo Bonziniexport DESTDIR
268612384d7Sbellard
269324027c2SFam Zhenginclude $(SRC_PATH)/tests/docker/Makefile.include
270b1fb9a63SFam Zhenginclude $(SRC_PATH)/tests/vm/Makefile.include
2710d8e065fSMarc-André Lureau
272c355de59SPhilippe Mathieu-Daudéprint-help-run = printf "  %-30s - %s\\n" "$1" "$2"
273c355de59SPhilippe Mathieu-Daudéprint-help = $(quiet-@)$(call print-help-run,$1,$2)
274c355de59SPhilippe Mathieu-Daudé
2750d8e065fSMarc-André Lureau.PHONY: help
2760d8e065fSMarc-André Lureauhelp:
2770d8e065fSMarc-André Lureau	@echo  'Generic targets:'
278c355de59SPhilippe Mathieu-Daudé	$(call print-help,all,Build all)
279c355de59SPhilippe Mathieu-Daudé	$(call print-help,dir/file.o,Build specified target only)
280c355de59SPhilippe Mathieu-Daudé	$(call print-help,install,Install QEMU, documentation and tools)
281c355de59SPhilippe Mathieu-Daudé	$(call print-help,ctags/TAGS,Generate tags file for editors)
282c355de59SPhilippe Mathieu-Daudé	$(call print-help,cscope,Generate cscope index)
283968b4db3SPaolo Bonzini	$(call print-help,sparse,Run sparse on the QEMU source)
2840d8e065fSMarc-André Lureau	@echo  ''
285c17a386bSAlex Bennéeifeq ($(CONFIG_PLUGIN),y)
286c17a386bSAlex Bennée	@echo  'Plugin targets:'
287c17a386bSAlex Bennée	$(call print-help,plugins,Build the example TCG plugins)
288c17a386bSAlex Bennée	@echo  ''
289c17a386bSAlex Bennéeendif
2900d8e065fSMarc-André Lureau	@echo  'Cleaning targets:'
291c355de59SPhilippe Mathieu-Daudé	$(call print-help,clean,Remove most generated files but keep the config)
292c355de59SPhilippe Mathieu-Daudé	$(call print-help,distclean,Remove all generated files)
293c355de59SPhilippe Mathieu-Daudé	$(call print-help,dist,Build a distributable tarball)
2940d8e065fSMarc-André Lureau	@echo  ''
2950d8e065fSMarc-André Lureau	@echo  'Test targets:'
296c355de59SPhilippe Mathieu-Daudé	$(call print-help,check,Run all tests (check-help for details))
2979ed7247aSPaolo Bonzini	$(call print-help,bench,Run all benchmarks)
298c355de59SPhilippe Mathieu-Daudé	$(call print-help,docker,Help about targets running tests inside containers)
299c355de59SPhilippe Mathieu-Daudé	$(call print-help,vm-help,Help about targets running tests inside VM)
3000d8e065fSMarc-André Lureau	@echo  ''
3010d8e065fSMarc-André Lureau	@echo  'Documentation targets:'
3024ac2ee19SPeter Maydell	$(call print-help,html man,Build documentation in specified format)
3030d8e065fSMarc-André Lureau	@echo  ''
3040d8e065fSMarc-André Lureauifdef CONFIG_WIN32
3050d8e065fSMarc-André Lureau	@echo  'Windows targets:'
306c355de59SPhilippe Mathieu-Daudé	$(call print-help,installer,Build NSIS-based installer for QEMU)
3074bad7c3bSStefan Hajnocziifdef CONFIG_QGA_MSI
308c355de59SPhilippe Mathieu-Daudé	$(call print-help,msi,Build MSI-based installer for qemu-ga)
3090d8e065fSMarc-André Lureauendif
3100d8e065fSMarc-André Lureau	@echo  ''
3110d8e065fSMarc-André Lureauendif
312c355de59SPhilippe Mathieu-Daudé	$(call print-help,$(MAKE) [targets],(quiet build, default))
313c355de59SPhilippe Mathieu-Daudé	$(call print-help,$(MAKE) V=1 [targets],(verbose build))
314660f7930SPaolo Bonzini
315660f7930SPaolo Bonzini# will delete the target of a rule if commands exit with a nonzero exit status
316660f7930SPaolo Bonzini.DELETE_ON_ERROR:
317660f7930SPaolo Bonzini
318660f7930SPaolo Bonziniprint-%:
319660f7930SPaolo Bonzini	@echo '$*=$($*)'
320