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 17bc054393SThomas HuthSHELL = 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 45b898bf28SPaolo Bonziniinclude Makefile.prereqs 46b898bf28SPaolo BonziniMakefile.prereqs: config-host.mak 47b898bf28SPaolo Bonzini 48aef45d51SDaniel P. Berrangegit-submodule-update: 492b8575bdSPaolo Bonzini.git-submodule-status: git-submodule-update config-host.mak 502b8575bdSPaolo BonziniMakefile: .git-submodule-status 51aef45d51SDaniel P. Berrange 52aef45d51SDaniel P. Berrange.PHONY: git-submodule-update 53f62bbee5SDaniel P. Berrangegit-submodule-update: 542d652f24SPaolo Bonziniifneq ($(GIT_SUBMODULES_ACTION),ignore) 55f62bbee5SDaniel P. Berrange $(call quiet-command, \ 567d7dbf9dSDan Streetman (GIT="$(GIT)" "$(SRC_PATH)/scripts/git-submodule.sh" $(GIT_SUBMODULES_ACTION) $(GIT_SUBMODULES)), \ 57aef45d51SDaniel P. Berrange "GIT","$(GIT_SUBMODULES)") 582d652f24SPaolo Bonziniendif 59aef45d51SDaniel P. Berrange 6009e93326SPaolo Bonzini# 0. ensure the build tree is okay 61a5665051SPaolo Bonzini 62d1bd2423SPeter Maydell# Check that we're not trying to do an out-of-tree build from 63d1bd2423SPeter Maydell# a tree that's been used for an in-tree build. 64d1bd2423SPeter Maydellifneq ($(realpath $(SRC_PATH)),$(realpath .)) 65d1bd2423SPeter Maydellifneq ($(wildcard $(SRC_PATH)/config-host.mak),) 66d1bd2423SPeter Maydell$(error This is an out of tree build but your source tree ($(SRC_PATH)) \ 67d1bd2423SPeter Maydellseems to have been used for an in-tree build. You can fix this by running \ 68b98a3baeSPhilippe Mathieu-Daudé"$(MAKE) distclean && rm -rf *-linux-user *-softmmu" in your source tree) 69d1bd2423SPeter Maydellendif 70d1bd2423SPeter Maydellendif 71d1bd2423SPeter Maydell 722b8575bdSPaolo Bonzini# force a rerun of configure if config-host.mak is too old or corrupted 732b8575bdSPaolo Bonziniifeq ($(MESON),) 742b8575bdSPaolo Bonzini.PHONY: config-host.mak 752b8575bdSPaolo Bonzinix := $(shell rm -rf meson-private meson-info meson-logs) 762b8575bdSPaolo Bonziniendif 772b8575bdSPaolo Bonziniifeq ($(NINJA),) 782b8575bdSPaolo Bonzini.PHONY: config-host.mak 792b8575bdSPaolo Bonzinix := $(shell rm -rf meson-private meson-info meson-logs) 805914ef77SPaolo Bonzinielse 815914ef77SPaolo Bonziniexport NINJA 822b8575bdSPaolo Bonziniendif 832b8575bdSPaolo Bonziniifeq ($(wildcard build.ninja),) 842b8575bdSPaolo Bonzini.PHONY: config-host.mak 852b8575bdSPaolo Bonzinix := $(shell rm -rf meson-private meson-info meson-logs) 862b8575bdSPaolo Bonziniendif 8716bf7a33SPaolo Bonziniifeq ($(origin prefix),file) 8816bf7a33SPaolo Bonzini.PHONY: config-host.mak 8916bf7a33SPaolo Bonzinix := $(shell rm -rf meson-private meson-info meson-logs) 9016bf7a33SPaolo Bonziniendif 912b8575bdSPaolo Bonzini 9209e93326SPaolo Bonzini# 1. ensure config-host.mak is up-to-date 937e270af2SAkihiko Odakiconfig-host.mak: $(SRC_PATH)/configure $(SRC_PATH)/scripts/meson-buildoptions.sh $(SRC_PATH)/VERSION 945914ef77SPaolo Bonzini @echo config-host.mak is out-of-date, running configure 95a5665051SPaolo Bonzini @if test -f meson-private/coredata.dat; then \ 96a5665051SPaolo Bonzini ./config.status --skip-meson; \ 97a5665051SPaolo Bonzini else \ 985914ef77SPaolo Bonzini ./config.status && touch build.ninja.stamp; \ 99a5665051SPaolo Bonzini fi 10026fffe29SEmilio G. Cota 1015914ef77SPaolo Bonzini# 2. meson.stamp exists if meson has run at least once (so ninja reconfigure 1025914ef77SPaolo Bonzini# works), but otherwise never needs to be updated 1035914ef77SPaolo Bonzinimeson-private/coredata.dat: meson.stamp 1045914ef77SPaolo Bonzinimeson.stamp: config-host.mak 1055914ef77SPaolo Bonzini @touch meson.stamp 1065914ef77SPaolo Bonzini 1075914ef77SPaolo Bonzini# 3. ensure generated build files are up-to-date 10809e93326SPaolo Bonzini 10909e93326SPaolo Bonziniifneq ($(NINJA),) 11009e93326SPaolo BonziniMakefile.ninja: build.ninja 1115914ef77SPaolo Bonzini $(quiet-@){ \ 1125914ef77SPaolo Bonzini echo 'ninja-targets = \'; \ 1135914ef77SPaolo Bonzini $(NINJA) -t targets all | sed 's/:.*//; $$!s/$$/ \\/'; \ 1145914ef77SPaolo Bonzini echo 'build-files = \'; \ 1155914ef77SPaolo Bonzini $(NINJA) -t query build.ninja | sed -n '1,/^ input:/d; /^ outputs:/q; s/$$/ \\/p'; \ 1165914ef77SPaolo Bonzini } > $@.tmp && mv $@.tmp $@ 11709e93326SPaolo Bonzini-include Makefile.ninja 1185914ef77SPaolo Bonzini 1195914ef77SPaolo Bonzini# A separate rule is needed for Makefile dependencies to avoid -n 1205914ef77SPaolo Bonzinibuild.ninja: build.ninja.stamp 121fc5db021SPaolo Bonzini$(build-files): 1225914ef77SPaolo Bonzinibuild.ninja.stamp: meson.stamp $(build-files) 1235914ef77SPaolo Bonzini $(NINJA) $(if $V,-v,) build.ninja && touch $@ 12409e93326SPaolo Bonziniendif 12509e93326SPaolo Bonzini 12609e93326SPaolo Bonziniifneq ($(MESON),) 1275914ef77SPaolo BonziniMakefile.mtest: build.ninja scripts/mtest2make.py 12809e93326SPaolo Bonzini $(MESON) introspect --targets --tests --benchmarks | $(PYTHON) scripts/mtest2make.py > $@ 12909e93326SPaolo Bonzini-include Makefile.mtest 13061d63097SPaolo Bonzini 13161d63097SPaolo Bonzini.PHONY: update-buildoptions 13261d63097SPaolo Bonziniall update-buildoptions: $(SRC_PATH)/scripts/meson-buildoptions.sh 13361d63097SPaolo Bonzini$(SRC_PATH)/scripts/meson-buildoptions.sh: $(SRC_PATH)/meson_options.txt 13461d63097SPaolo Bonzini $(MESON) introspect --buildoptions $(SRC_PATH)/meson.build | $(PYTHON) \ 13561d63097SPaolo Bonzini scripts/meson-buildoptions.py > $@.tmp && mv $@.tmp $@ 13609e93326SPaolo Bonziniendif 13709e93326SPaolo Bonzini 1385914ef77SPaolo Bonzini# 4. Rules to bridge to other makefiles 13909e93326SPaolo Bonzini 14009e93326SPaolo Bonziniifneq ($(NINJA),) 14114833e24SAlexey Neyman# Filter out long options to avoid flags like --no-print-directory which 14214833e24SAlexey Neyman# may result in false positive match for MAKE.n 14314833e24SAlexey NeymanMAKE.n = $(findstring n,$(firstword $(filter-out --%,$(MAKEFLAGS)))) 14414833e24SAlexey NeymanMAKE.k = $(findstring k,$(firstword $(filter-out --%,$(MAKEFLAGS)))) 14514833e24SAlexey NeymanMAKE.q = $(findstring q,$(firstword $(filter-out --%,$(MAKEFLAGS)))) 146c8e6cfbaSPaolo BonziniMAKE.nq = $(if $(word 2, $(MAKE.n) $(MAKE.q)),nq) 147c8e6cfbaSPaolo BonziniNINJAFLAGS = $(if $V,-v) $(if $(MAKE.n), -n) $(if $(MAKE.k), -k0) \ 14809e93326SPaolo Bonzini $(filter-out -j, $(lastword -j1 $(filter -l% -j%, $(MAKEFLAGS)))) \ 149231ca963SPaolo Bonzini -d keepdepfile 15009e93326SPaolo Bonzinininja-cmd-goals = $(or $(MAKECMDGOALS), all) 1519ee37d3bSPaolo Bonzinininja-cmd-goals += $(foreach g, $(MAKECMDGOALS), $(.ninja-goals.$g)) 15209e93326SPaolo Bonzini 15309e93326SPaolo Bonzinimakefile-targets := build.ninja ctags TAGS cscope dist clean uninstall 1545914ef77SPaolo Bonzini# "ninja -t targets" also lists all prerequisites. If build system 1555914ef77SPaolo Bonzini# files are marked as PHONY, however, Make will always try to execute 1565914ef77SPaolo Bonzini# "ninja build.ninja". 1575914ef77SPaolo Bonzinininja-targets := $(filter-out $(build-files) $(makefile-targets), $(ninja-targets)) 15809e93326SPaolo Bonzini.PHONY: $(ninja-targets) run-ninja 15909e93326SPaolo Bonzini$(ninja-targets): run-ninja 16009e93326SPaolo Bonzini 16109e93326SPaolo Bonzini# Use "| cat" to give Ninja a more "make-y" output. Use "+" to bypass the 16209e93326SPaolo Bonzini# --output-sync line. 16309e93326SPaolo Bonzinirun-ninja: config-host.mak 16409e93326SPaolo Bonziniifneq ($(filter $(ninja-targets), $(ninja-cmd-goals)),) 165231ca963SPaolo Bonzini +$(if $(MAKE.nq),@:,$(quiet-@)$(NINJA) $(NINJAFLAGS) \ 166231ca963SPaolo Bonzini $(sort $(filter $(ninja-targets), $(ninja-cmd-goals))) | cat) 16709e93326SPaolo Bonziniendif 16809e93326SPaolo Bonziniendif 16909e93326SPaolo Bonzini 17026fffe29SEmilio G. Cotaifeq ($(CONFIG_PLUGIN),y) 171c17a386bSAlex Bennée.PHONY: plugins 172c17a386bSAlex Bennéeplugins: 173c17a386bSAlex Bennée $(call quiet-command,\ 174c17a386bSAlex Bennée $(MAKE) $(SUBDIR_MAKEFLAGS) -C contrib/plugins V="$(V)", \ 175c17a386bSAlex Bennée "BUILD", "example plugins") 1762b8575bdSPaolo Bonziniendif # $(CONFIG_PLUGIN) 17726fffe29SEmilio G. Cota 1782b8575bdSPaolo Bonzinielse # config-host.mak does not exist 17955d7e8f6Saurel32config-host.mak: 180eaa2ddbbSFam Zhengifneq ($(filter-out $(UNCHECKED_GOALS),$(MAKECMDGOALS)),$(if $(MAKECMDGOALS),,fail)) 18155d7e8f6Saurel32 @echo "Please call configure before running make!" 18255d7e8f6Saurel32 @exit 1 18355d7e8f6Saurel32endif 1842b8575bdSPaolo Bonziniendif # config-host.mak does not exist 185766a487aSbellard 186660f7930SPaolo BonziniSUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory --quiet) 187a992fe3dSPaul Brook 18846e7b706SFam Zhenginclude $(SRC_PATH)/tests/Makefile.include 189992aeb8eSPaolo Bonzini 190484e2cc7SPaolo Bonziniall: recurse-all 191675b9b53SMarc-André Lureau 1924a3447e5SPaolo BonziniROMS_RULES=$(foreach t, all clean distclean, $(addsuffix /$(t), $(ROMS))) 19376ca98b0SPaolo Bonzini.PHONY: $(ROMS_RULES) 19476ca98b0SPaolo Bonzini$(ROMS_RULES): 19549b7d744SPaolo Bonzini $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $(dir $@) V="$(V)" TARGET_DIR="$(dir $@)" $(notdir $@),) 196c05ac895SPaul Brook 1975e6d1573SPaolo Bonzini.PHONY: recurse-all recurse-clean 19876ca98b0SPaolo Bonzinirecurse-all: $(addsuffix /all, $(ROMS)) 19976ca98b0SPaolo Bonzinirecurse-clean: $(addsuffix /clean, $(ROMS)) 2004a3447e5SPaolo Bonzinirecurse-distclean: $(addsuffix /distclean, $(ROMS)) 2014aa42531Spbrook 2023bc2f570SPaolo Bonzini###################################################################### 2034fb240a4Sbellard 20409e93326SPaolo Bonziniclean: recurse-clean 2051023e003SPaolo Bonzini -$(quiet-@)test -f build.ninja && $(NINJA) $(NINJAFLAGS) -t clean || : 2061023e003SPaolo Bonzini -$(quiet-@)test -f build.ninja && $(NINJA) $(NINJAFLAGS) clean-ctlist || : 207029e2da8SAlex Bennée find . \( -name '*.so' -o -name '*.dll' -o \ 208029e2da8SAlex Bennée -name '*.[oda]' -o -name '*.gcno' \) -type f \ 20923858f40SLaszlo Ersek ! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-aarch64.a \ 21023858f40SLaszlo Ersek ! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-arm.a \ 21123858f40SLaszlo Ersek -exec rm {} + 2129da9be2cSPaolo Bonzini rm -f TAGS cscope.* *~ */*~ 21331e31b8aSbellard 214859aef02SPaolo BonziniVERSION = $(shell cat $(SRC_PATH)/VERSION) 21534bb443eSAnthony Liguori 21634bb443eSAnthony Liguoridist: qemu-$(VERSION).tar.bz2 21734bb443eSAnthony Liguori 21834bb443eSAnthony Liguoriqemu-%.tar.bz2: 21934bb443eSAnthony Liguori $(SRC_PATH)/scripts/make-release "$(SRC_PATH)" "$(patsubst qemu-%.tar.bz2,%,$@)" 22034bb443eSAnthony Liguori 2214a3447e5SPaolo Bonzinidistclean: clean recurse-distclean 2221023e003SPaolo Bonzini -$(quiet-@)test -f build.ninja && $(NINJA) $(NINJAFLAGS) -t clean -g || : 223b898bf28SPaolo Bonzini rm -f config-host.mak Makefile.prereqs qemu-bundle 224*c7022a70SPaolo Bonzini rm -f tests/tcg/*/config-target.mak tests/tcg/config-host.mak 2259da9be2cSPaolo Bonzini rm -f config.status 2269da9be2cSPaolo Bonzini rm -f roms/seabios/config.mak 22726fffe29SEmilio G. Cota rm -f qemu-plugins-ld.symbols qemu-plugins-ld64.symbols 22864ed6f92SPaolo Bonzini rm -f *-config-target.h *-config-devices.mak *-config-devices.h 229a5665051SPaolo Bonzini rm -rf meson-private meson-logs meson-info compile_commands.json 2305914ef77SPaolo Bonzini rm -f Makefile.ninja Makefile.mtest build.ninja.stamp meson.stamp 231793553acSAlexandre Raymond rm -f config.log 23267ed96f9SPeter Maydell rm -f linux-headers/asm 233d9840e25STomoki Sekiyama rm -Rf .sdk 2347d13299dSbellard 235af7d106eSPeter Xufind-src-path = find "$(SRC_PATH)" -path "$(SRC_PATH)/meson" -prune -o \ 236af7d106eSPeter Xu -type l -prune -o \( -name "*.[chsS]" -o -name "*.[ch].inc" \) 237c857f905SGreg Kurz 238d7986405SGreg Kurz.PHONY: ctags 239d7986405SGreg Kurzctags: 240f2c78150SAlex Bennée $(call quiet-command, \ 241f2c78150SAlex Bennée rm -f "$(SRC_PATH)/"tags, \ 242f2c78150SAlex Bennée "CTAGS", "Remove old tags") 243f2c78150SAlex Bennée $(call quiet-command, \ 244f2c78150SAlex Bennée $(find-src-path) -exec ctags \ 245f2c78150SAlex Bennée -f "$(SRC_PATH)/"tags --append {} +, \ 246f2c78150SAlex Bennée "CTAGS", "Re-index $(SRC_PATH)") 247d7986405SGreg Kurz 248b8a32254SAlex Bennée.PHONY: gtags 249b8a32254SAlex Bennéegtags: 250b8a32254SAlex Bennée $(call quiet-command, \ 251b8a32254SAlex Bennée rm -f "$(SRC_PATH)/"GTAGS; \ 252b8a32254SAlex Bennée rm -f "$(SRC_PATH)/"GRTAGS; \ 253b8a32254SAlex Bennée rm -f "$(SRC_PATH)/"GPATH, \ 254b8a32254SAlex Bennée "GTAGS", "Remove old $@ files") 255b8a32254SAlex Bennée $(call quiet-command, \ 256b8a32254SAlex Bennée (cd $(SRC_PATH) && \ 257b8c9ed15SPeter Xu $(find-src-path) -print | gtags -f -), \ 258b8a32254SAlex Bennée "GTAGS", "Re-index $(SRC_PATH)") 259b8a32254SAlex Bennée 260d7986405SGreg Kurz.PHONY: TAGS 261d7986405SGreg KurzTAGS: 262af5d5762SAlex Bennée $(call quiet-command, \ 263af5d5762SAlex Bennée rm -f "$(SRC_PATH)/"TAGS, \ 264af5d5762SAlex Bennée "TAGS", "Remove old $@") 265af5d5762SAlex Bennée $(call quiet-command, \ 266af5d5762SAlex Bennée $(find-src-path) -exec etags \ 267af5d5762SAlex Bennée -f "$(SRC_PATH)/"TAGS --append {} +, \ 268af5d5762SAlex Bennée "TAGS", "Re-index $(SRC_PATH)") 269d7986405SGreg Kurz 270d7986405SGreg Kurz.PHONY: cscope 271d7986405SGreg Kurzcscope: 2723e6c1475SAlex Bennée $(call quiet-command, \ 2733e6c1475SAlex Bennée rm -f "$(SRC_PATH)/"cscope.* , \ 2743e6c1475SAlex Bennée "cscope", "Remove old $@ files") 2753e6c1475SAlex Bennée $(call quiet-command, \ 2763e6c1475SAlex Bennée ($(find-src-path) -print | sed -e 's,^\./,,' \ 2773e6c1475SAlex Bennée > "$(SRC_PATH)/cscope.files"), \ 2783e6c1475SAlex Bennée "cscope", "Create file list") 2793e6c1475SAlex Bennée $(call quiet-command, \ 2803e6c1475SAlex Bennée cscope -b -i"$(SRC_PATH)/cscope.files" \ 2813e6c1475SAlex Bennée -f"$(SRC_PATH)"/cscope.out, \ 2823e6c1475SAlex Bennée "cscope", "Re-index $(SRC_PATH)") 283d7986405SGreg Kurz 284a5665051SPaolo Bonzini# Needed by "meson install" 285a5665051SPaolo Bonziniexport DESTDIR 286612384d7Sbellard 2874ebb040fSDaniel P. Berrangéinclude $(SRC_PATH)/tests/lcitool/Makefile.include 288324027c2SFam Zhenginclude $(SRC_PATH)/tests/docker/Makefile.include 289b1fb9a63SFam Zhenginclude $(SRC_PATH)/tests/vm/Makefile.include 2900d8e065fSMarc-André Lureau 291c355de59SPhilippe Mathieu-Daudéprint-help-run = printf " %-30s - %s\\n" "$1" "$2" 292784106ecSGreg Kurzprint-help = @$(call print-help-run,$1,$2) 293c355de59SPhilippe Mathieu-Daudé 2940d8e065fSMarc-André Lureau.PHONY: help 2950d8e065fSMarc-André Lureauhelp: 2960d8e065fSMarc-André Lureau @echo 'Generic targets:' 297c355de59SPhilippe Mathieu-Daudé $(call print-help,all,Build all) 298c355de59SPhilippe Mathieu-Daudé $(call print-help,dir/file.o,Build specified target only) 299c355de59SPhilippe Mathieu-Daudé $(call print-help,install,Install QEMU, documentation and tools) 300b8a32254SAlex Bennée $(call print-help,ctags/gtags/TAGS,Generate tags file for editors) 301c355de59SPhilippe Mathieu-Daudé $(call print-help,cscope,Generate cscope index) 302968b4db3SPaolo Bonzini $(call print-help,sparse,Run sparse on the QEMU source) 3030d8e065fSMarc-André Lureau @echo '' 304c17a386bSAlex Bennéeifeq ($(CONFIG_PLUGIN),y) 305c17a386bSAlex Bennée @echo 'Plugin targets:' 306c17a386bSAlex Bennée $(call print-help,plugins,Build the example TCG plugins) 307c17a386bSAlex Bennée @echo '' 308c17a386bSAlex Bennéeendif 3090d8e065fSMarc-André Lureau @echo 'Cleaning targets:' 310c355de59SPhilippe Mathieu-Daudé $(call print-help,clean,Remove most generated files but keep the config) 311c355de59SPhilippe Mathieu-Daudé $(call print-help,distclean,Remove all generated files) 312c355de59SPhilippe Mathieu-Daudé $(call print-help,dist,Build a distributable tarball) 3130d8e065fSMarc-André Lureau @echo '' 3140d8e065fSMarc-André Lureau @echo 'Test targets:' 315c355de59SPhilippe Mathieu-Daudé $(call print-help,check,Run all tests (check-help for details)) 3169ed7247aSPaolo Bonzini $(call print-help,bench,Run all benchmarks) 3174ebb040fSDaniel P. Berrangé $(call print-help,lcitool-help,Help about targets for managing build environment manifests) 3186147c249SAlex Bennée $(call print-help,docker-help,Help about targets running tests inside containers) 319c355de59SPhilippe Mathieu-Daudé $(call print-help,vm-help,Help about targets running tests inside VM) 3200d8e065fSMarc-André Lureau @echo '' 3210d8e065fSMarc-André Lureau @echo 'Documentation targets:' 3224ac2ee19SPeter Maydell $(call print-help,html man,Build documentation in specified format) 3230d8e065fSMarc-André Lureau @echo '' 3240d8e065fSMarc-André Lureauifdef CONFIG_WIN32 3250d8e065fSMarc-André Lureau @echo 'Windows targets:' 326c355de59SPhilippe Mathieu-Daudé $(call print-help,installer,Build NSIS-based installer for QEMU) 327c355de59SPhilippe Mathieu-Daudé $(call print-help,msi,Build MSI-based installer for qemu-ga) 3280d8e065fSMarc-André Lureau @echo '' 3290d8e065fSMarc-André Lureauendif 330c355de59SPhilippe Mathieu-Daudé $(call print-help,$(MAKE) [targets],(quiet build, default)) 331c355de59SPhilippe Mathieu-Daudé $(call print-help,$(MAKE) V=1 [targets],(verbose build)) 332660f7930SPaolo Bonzini 333660f7930SPaolo Bonzini# will delete the target of a rule if commands exit with a nonzero exit status 334660f7930SPaolo Bonzini.DELETE_ON_ERROR: 335660f7930SPaolo Bonzini 336660f7930SPaolo Bonziniprint-%: 337660f7930SPaolo Bonzini @echo '$*=$($*)' 338