blob: 76dbb917f5cd3085ad93cb634c14ba88b380ab53 [file] [log] [blame]
pbrook0cb3fb12006-05-14 12:07:53 +00001# Makefile for QEMU.
2
Antonio Ospite4ace32e2019-05-26 16:47:47 +02003ifneq ($(words $(subst :, ,$(CURDIR))), 1)
4 $(error main directory cannot contain spaces nor colons)
5endif
6
Stefan Weil519e1692011-09-16 21:50:43 +02007# Always point to the root of the build tree (needs GNU make).
8BUILD_DIR=$(CURDIR)
Lluís Vilanova388d4752011-09-15 22:45:35 +02009
Fam Zhengeaa2ddb2015-05-22 13:35:07 +080010# Before including a proper config-host.mak, assume we are in the source tree
11SRC_PATH=.
12
Paolo Bonzini660f7932020-09-01 12:10:05 -040013# Don't use implicit rules or variables
14# we have explicit rules for everything
15MAKEFLAGS += -rR
16
Paolo Bonzini3bf45832020-10-14 07:35:13 -040017SHELL = /usr/bin/env bash -o pipefail
18
Paolo Bonzini660f7932020-09-01 12:10:05 -040019# Usage: $(call quiet-command,command and args,"NAME","args to print")
20# This will run "command and args", and either:
21# if V=1 just print the whole command and args
22# otherwise print the 'quiet' output in the format " NAME args to print"
23# NAME should be a short name of the command, 7 letters or fewer.
24# If called with only a single argument, will print nothing in quiet mode.
25quiet-command-run = $(if $(V),,$(if $2,printf " %-7s %s\n" $2 $3 && ))$1
26quiet-@ = $(if $(V),,@)
27quiet-command = $(quiet-@)$(call quiet-command-run,$1,$2,$3)
28
Philippe Mathieu-Daudé28fa2922017-11-21 00:22:47 -030029UNCHECKED_GOALS := %clean TAGS cscope ctags dist \
Marc-André Lureaude1da442018-01-04 17:05:08 +010030 help check-help print-% \
Philippe Mathieu-Daudé4f2f6272019-05-31 08:43:41 +020031 docker docker-% vm-help vm-test vm-build-%
Fam Zhengeaa2ddb2015-05-22 13:35:07 +080032
Paolo Bonzini2b8575b2020-10-15 12:20:02 -040033all:
34.PHONY: all clean distclean recurse-all dist msi FORCE
35
36# Don't try to regenerate Makefile or configure
37# We don't generate any of them
38Makefile: ;
39configure: ;
40
Lluís Vilanova250b0862012-03-06 19:50:38 +010041# All following code might depend on configuration variables
aurel3255d7e8f2009-04-15 14:42:57 +000042ifneq ($(wildcard config-host.mak),)
pbrookad064842006-04-16 12:41:07 +000043include config-host.mak
Peter Maydelld1bd2422012-10-19 14:54:23 +010044
Daniel P. Berrangeaef45d52017-09-29 11:11:56 +010045git-submodule-update:
Paolo Bonzini2b8575b2020-10-15 12:20:02 -040046.git-submodule-status: git-submodule-update config-host.mak
47Makefile: .git-submodule-status
Daniel P. Berrangeaef45d52017-09-29 11:11:56 +010048
49.PHONY: git-submodule-update
50
Daniel P. Berrangec4b01c72017-11-06 11:08:14 +000051git_module_status := $(shell \
52 cd '$(SRC_PATH)' && \
53 GIT="$(GIT)" ./scripts/git-submodule.sh status $(GIT_SUBMODULES); \
54 echo $$?; \
55)
Daniel P. Berrangeaef45d52017-09-29 11:11:56 +010056
57ifeq (1,$(git_module_status))
Daniel P. Berrangef62bbee2017-10-26 13:52:26 +010058ifeq (no,$(GIT_UPDATE))
59git-submodule-update:
60 $(call quiet-command, \
61 echo && \
62 echo "GIT submodule checkout is out of date. Please run" && \
63 echo " scripts/git-submodule.sh update $(GIT_SUBMODULES)" && \
64 echo "from the source directory checkout $(SRC_PATH)" && \
65 echo && \
66 exit 1)
67else
Daniel P. Berrangeaef45d52017-09-29 11:11:56 +010068git-submodule-update:
69 $(call quiet-command, \
Daniel P. Berrangecc84d632017-10-20 15:02:43 +010070 (cd $(SRC_PATH) && GIT="$(GIT)" ./scripts/git-submodule.sh update $(GIT_SUBMODULES)), \
Daniel P. Berrangeaef45d52017-09-29 11:11:56 +010071 "GIT","$(GIT_SUBMODULES)")
72endif
73endif
74
Paolo Bonzini09e93322020-08-13 09:28:11 -040075# 0. ensure the build tree is okay
Paolo Bonzinia5665052019-06-10 12:05:14 +020076
Peter Maydelld1bd2422012-10-19 14:54:23 +010077# Check that we're not trying to do an out-of-tree build from
78# a tree that's been used for an in-tree build.
79ifneq ($(realpath $(SRC_PATH)),$(realpath .))
80ifneq ($(wildcard $(SRC_PATH)/config-host.mak),)
81$(error This is an out of tree build but your source tree ($(SRC_PATH)) \
82seems to have been used for an in-tree build. You can fix this by running \
Philippe Mathieu-Daudéb98a3ba2017-11-21 06:55:10 -030083"$(MAKE) distclean && rm -rf *-linux-user *-softmmu" in your source tree)
Peter Maydelld1bd2422012-10-19 14:54:23 +010084endif
85endif
86
Paolo Bonzini2b8575b2020-10-15 12:20:02 -040087# force a rerun of configure if config-host.mak is too old or corrupted
88ifeq ($(MESON),)
89.PHONY: config-host.mak
90x := $(shell rm -rf meson-private meson-info meson-logs)
91endif
92ifeq ($(NINJA),)
93.PHONY: config-host.mak
94x := $(shell rm -rf meson-private meson-info meson-logs)
Paolo Bonzini5914ef72020-10-23 08:34:54 -040095else
96export NINJA
Paolo Bonzini2b8575b2020-10-15 12:20:02 -040097endif
98ifeq ($(wildcard build.ninja),)
99.PHONY: config-host.mak
100x := $(shell rm -rf meson-private meson-info meson-logs)
101endif
Paolo Bonzini16bf7a32020-10-16 03:19:14 -0400102ifeq ($(origin prefix),file)
103.PHONY: config-host.mak
104x := $(shell rm -rf meson-private meson-info meson-logs)
105endif
Paolo Bonzini2b8575b2020-10-15 12:20:02 -0400106
Paolo Bonzini09e93322020-08-13 09:28:11 -0400107# 1. ensure config-host.mak is up-to-date
Markus Armbruster3a6b0162018-12-14 09:47:54 +0100108config-host.mak: $(SRC_PATH)/configure $(SRC_PATH)/pc-bios $(SRC_PATH)/VERSION
Paolo Bonzini5914ef72020-10-23 08:34:54 -0400109 @echo config-host.mak is out-of-date, running configure
Paolo Bonzinia5665052019-06-10 12:05:14 +0200110 @if test -f meson-private/coredata.dat; then \
111 ./config.status --skip-meson; \
112 else \
Paolo Bonzini5914ef72020-10-23 08:34:54 -0400113 ./config.status && touch build.ninja.stamp; \
Paolo Bonzinia5665052019-06-10 12:05:14 +0200114 fi
Emilio G. Cota26fffe22018-10-21 13:56:29 -0400115
Paolo Bonzini5914ef72020-10-23 08:34:54 -0400116# 2. meson.stamp exists if meson has run at least once (so ninja reconfigure
117# works), but otherwise never needs to be updated
118meson-private/coredata.dat: meson.stamp
119meson.stamp: config-host.mak
120 @touch meson.stamp
121
122# 3. ensure generated build files are up-to-date
Paolo Bonzini09e93322020-08-13 09:28:11 -0400123
124ifneq ($(NINJA),)
Paolo Bonzini09e93322020-08-13 09:28:11 -0400125Makefile.ninja: build.ninja
Paolo Bonzini5914ef72020-10-23 08:34:54 -0400126 $(quiet-@){ \
127 echo 'ninja-targets = \'; \
128 $(NINJA) -t targets all | sed 's/:.*//; $$!s/$$/ \\/'; \
129 echo 'build-files = \'; \
130 $(NINJA) -t query build.ninja | sed -n '1,/^ input:/d; /^ outputs:/q; s/$$/ \\/p'; \
131 } > $@.tmp && mv $@.tmp $@
Paolo Bonzini09e93322020-08-13 09:28:11 -0400132-include Makefile.ninja
Paolo Bonzini5914ef72020-10-23 08:34:54 -0400133
134# A separate rule is needed for Makefile dependencies to avoid -n
135build.ninja: build.ninja.stamp
136build.ninja.stamp: meson.stamp $(build-files)
137 $(NINJA) $(if $V,-v,) build.ninja && touch $@
Paolo Bonzini09e93322020-08-13 09:28:11 -0400138endif
139
140ifneq ($(MESON),)
Paolo Bonzini5914ef72020-10-23 08:34:54 -0400141Makefile.mtest: build.ninja scripts/mtest2make.py
Paolo Bonzini09e93322020-08-13 09:28:11 -0400142 $(MESON) introspect --targets --tests --benchmarks | $(PYTHON) scripts/mtest2make.py > $@
143-include Makefile.mtest
144endif
145
Paolo Bonzini5914ef72020-10-23 08:34:54 -0400146# 4. Rules to bridge to other makefiles
Paolo Bonzini09e93322020-08-13 09:28:11 -0400147
148ifneq ($(NINJA),)
Paolo Bonzinic8e6cfb2020-10-26 11:58:54 -0400149MAKE.n = $(findstring n,$(firstword $(MAKEFLAGS)))
150MAKE.k = $(findstring k,$(firstword $(MAKEFLAGS)))
151MAKE.q = $(findstring q,$(firstword $(MAKEFLAGS)))
152MAKE.nq = $(if $(word 2, $(MAKE.n) $(MAKE.q)),nq)
153NINJAFLAGS = $(if $V,-v) $(if $(MAKE.n), -n) $(if $(MAKE.k), -k0) \
Paolo Bonzini09e93322020-08-13 09:28:11 -0400154 $(filter-out -j, $(lastword -j1 $(filter -l% -j%, $(MAKEFLAGS)))) \
Paolo Bonzini09e93322020-08-13 09:28:11 -0400155
156ninja-cmd-goals = $(or $(MAKECMDGOALS), all)
157ninja-cmd-goals += $(foreach t, $(.tests), $(.test.deps.$t))
158
159makefile-targets := build.ninja ctags TAGS cscope dist clean uninstall
Paolo Bonzini5914ef72020-10-23 08:34:54 -0400160# "ninja -t targets" also lists all prerequisites. If build system
161# files are marked as PHONY, however, Make will always try to execute
162# "ninja build.ninja".
163ninja-targets := $(filter-out $(build-files) $(makefile-targets), $(ninja-targets))
Paolo Bonzini09e93322020-08-13 09:28:11 -0400164.PHONY: $(ninja-targets) run-ninja
165$(ninja-targets): run-ninja
166
167# Use "| cat" to give Ninja a more "make-y" output. Use "+" to bypass the
168# --output-sync line.
169run-ninja: config-host.mak
170ifneq ($(filter $(ninja-targets), $(ninja-cmd-goals)),)
Paolo Bonzinic8e6cfb2020-10-26 11:58:54 -0400171 +$(quiet-@)$(if $(MAKE.nq),@:, $(NINJA) \
172 $(NINJAFLAGS) $(sort $(filter $(ninja-targets), $(ninja-cmd-goals))) | cat)
Paolo Bonzini09e93322020-08-13 09:28:11 -0400173endif
174endif
175
Emilio G. Cota26fffe22018-10-21 13:56:29 -0400176# Force configure to re-run if the API symbols are updated
177ifeq ($(CONFIG_PLUGIN),y)
178config-host.mak: $(SRC_PATH)/plugins/qemu-plugins.symbols
Alex Bennéec17a3862020-09-09 12:27:41 +0100179
180.PHONY: plugins
181plugins:
182 $(call quiet-command,\
183 $(MAKE) $(SUBDIR_MAKEFLAGS) -C contrib/plugins V="$(V)", \
184 "BUILD", "example plugins")
Paolo Bonzini2b8575b2020-10-15 12:20:02 -0400185endif # $(CONFIG_PLUGIN)
Emilio G. Cota26fffe22018-10-21 13:56:29 -0400186
Paolo Bonzini2b8575b2020-10-15 12:20:02 -0400187else # config-host.mak does not exist
aurel3255d7e8f2009-04-15 14:42:57 +0000188config-host.mak:
Fam Zhengeaa2ddb2015-05-22 13:35:07 +0800189ifneq ($(filter-out $(UNCHECKED_GOALS),$(MAKECMDGOALS)),$(if $(MAKECMDGOALS),,fail))
aurel3255d7e8f2009-04-15 14:42:57 +0000190 @echo "Please call configure before running make!"
191 @exit 1
192endif
Paolo Bonzini2b8575b2020-10-15 12:20:02 -0400193endif # config-host.mak does not exist
bellard766a4872003-02-18 23:35:48 +0000194
Paolo Bonzini660f7932020-09-01 12:10:05 -0400195SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory --quiet)
Paul Brooka992fe32009-11-22 16:25:30 +0000196
Fam Zheng46e7b702016-06-01 10:23:31 +0800197include $(SRC_PATH)/tests/Makefile.include
Paolo Bonzini992aeb82012-12-21 08:34:49 +0100198
Paolo Bonzini484e2cc2019-12-12 13:30:36 +0100199all: recurse-all
Marc-André Lureau675b9b52019-02-12 17:25:23 +0100200
Markus Armbruster3b8593e2019-05-28 10:23:07 +0200201ROM_DIRS = $(addprefix pc-bios/, $(ROMS))
Markus Armbruster1338a4b2019-05-28 10:23:08 +0200202ROM_DIRS_RULES=$(foreach t, all clean, $(addsuffix /$(t), $(ROM_DIRS)))
Marc-André Lureaua9c87302016-08-05 12:23:46 +0400203# Only keep -O and -g cflags
Markus Armbruster1338a4b2019-05-28 10:23:08 +0200204.PHONY: $(ROM_DIRS_RULES)
205$(ROM_DIRS_RULES):
Paolo Bonzini49b7d742020-08-31 08:36:27 -0400206 $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $(dir $@) V="$(V)" TARGET_DIR="$(dir $@)" $(notdir $@),)
Paul Brookc05ac892009-07-31 13:18:32 +0100207
Paolo Bonzini5e6d1572020-08-05 13:05:13 +0200208.PHONY: recurse-all recurse-clean
Paolo Bonzini49b7d742020-08-31 08:36:27 -0400209recurse-all: $(addsuffix /all, $(ROM_DIRS))
Paolo Bonzini5e6d1572020-08-05 13:05:13 +0200210recurse-clean: $(addsuffix /clean, $(ROM_DIRS))
bellard83f64092006-08-01 16:21:11 +0000211
Paolo Bonzini3bc2f572012-11-16 18:35:27 +0100212######################################################################
bellard4fb240a2007-11-07 19:24:02 +0000213
Paolo Bonzini09e93322020-08-13 09:28:11 -0400214clean: recurse-clean
Paolo Bonzini1023e002020-11-05 07:44:56 -0500215 -$(quiet-@)test -f build.ninja && $(NINJA) $(NINJAFLAGS) -t clean || :
216 -$(quiet-@)test -f build.ninja && $(NINJA) $(NINJAFLAGS) clean-ctlist || :
bellard2d80ae82003-08-11 23:01:33 +0000217# avoid old build problems by removing potentially incorrect old files
Juan Quintela25be210f2009-10-07 02:41:00 +0200218 rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
Paolo Bonzini484e2cc2019-12-12 13:30:36 +0100219 find . \( -name '*.so' -o -name '*.dll' -o -name '*.[oda]' \) -type f \
Laszlo Ersek23858f42019-02-04 17:03:21 +0100220 ! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-aarch64.a \
221 ! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-arm.a \
Laszlo Ersek23858f42019-02-04 17:03:21 +0100222 -exec rm {} +
Paolo Bonzinic3a0ee82019-07-18 13:21:28 +0200223 rm -f TAGS cscope.* *.pod *~ */*~
Paolo Bonzinib855f8d2017-08-22 06:50:18 +0200224 rm -f fsdev/*.pod scsi/*.pod
bellard31e31b82003-02-18 22:55:36 +0000225
Paolo Bonzini859aef02020-08-04 18:14:26 +0200226VERSION = $(shell cat $(SRC_PATH)/VERSION)
Anthony Liguori34bb4432012-07-17 13:33:32 -0500227
228dist: qemu-$(VERSION).tar.bz2
229
230qemu-%.tar.bz2:
231 $(SRC_PATH)/scripts/make-release "$(SRC_PATH)" "$(patsubst qemu-%.tar.bz2,%,$@)"
232
Paolo Bonzini09e93322020-08-13 09:28:11 -0400233distclean: clean
Paolo Bonzini1023e002020-11-05 07:44:56 -0500234 -$(quiet-@)test -f build.ninja && $(NINJA) $(NINJAFLAGS) -t clean -g || :
Paolo Bonziniacfdaac2020-08-05 13:07:48 +0200235 rm -f config-host.mak config-host.h*
Paolo Bonzini2038f8c2019-08-07 16:35:23 +0200236 rm -f tests/tcg/config-*.mak
Paolo Bonzini2becc362020-02-03 11:42:03 +0100237 rm -f config-all-disas.mak config.status
Marc-André Lureaue8f3bd72019-09-19 21:02:09 +0400238 rm -f tests/qemu-iotests/common.env
Magnus Dammfc8e3202009-11-13 18:51:05 +0900239 rm -f roms/seabios/config.mak roms/vgabios/config.mak
Emilio G. Cota26fffe22018-10-21 13:56:29 -0400240 rm -f qemu-plugins-ld.symbols qemu-plugins-ld64.symbols
Paolo Bonzini64ed6f92020-08-03 17:04:25 +0200241 rm -f *-config-target.h *-config-devices.mak *-config-devices.h
Paolo Bonzinia5665052019-06-10 12:05:14 +0200242 rm -rf meson-private meson-logs meson-info compile_commands.json
Paolo Bonzini5914ef72020-10-23 08:34:54 -0400243 rm -f Makefile.ninja Makefile.mtest build.ninja.stamp meson.stamp
Alexandre Raymond793553a2011-07-25 23:56:02 -0400244 rm -f config.log
Peter Maydell67ed96f2012-02-01 18:50:42 +0000245 rm -f linux-headers/asm
Tomoki Sekiyamad9840e22013-08-07 11:40:03 -0400246 rm -Rf .sdk
bellard7d132992003-03-06 23:23:54 +0000247
Greg Kurz018da272020-10-13 11:18:13 +0200248find-src-path = find "$(SRC_PATH)/" -path "$(SRC_PATH)/meson" -prune -o \( -name "*.[chsS]" -o -name "*.[ch].inc" \)
Greg Kurzc857f902020-09-03 21:47:55 +0200249
Greg Kurzd7986402020-09-01 16:20:10 +0200250.PHONY: ctags
251ctags:
Greg Kurze90df5e2020-10-15 16:49:06 +0200252 rm -f "$(SRC_PATH)/"tags
253 $(find-src-path) -exec ctags -f "$(SRC_PATH)/"tags --append {} +
Greg Kurzd7986402020-09-01 16:20:10 +0200254
255.PHONY: TAGS
256TAGS:
Greg Kurze90df5e2020-10-15 16:49:06 +0200257 rm -f "$(SRC_PATH)/"TAGS
258 $(find-src-path) -exec etags -f "$(SRC_PATH)/"TAGS --append {} +
Greg Kurzd7986402020-09-01 16:20:10 +0200259
260.PHONY: cscope
261cscope:
262 rm -f "$(SRC_PATH)"/cscope.*
Greg Kurzc857f902020-09-03 21:47:55 +0200263 $(find-src-path) -print | sed -e 's,^\./,,' > "$(SRC_PATH)/cscope.files"
Greg Kurze90df5e2020-10-15 16:49:06 +0200264 cscope -b -i"$(SRC_PATH)/cscope.files" -f"$(SRC_PATH)"/cscope.out
Greg Kurzd7986402020-09-01 16:20:10 +0200265
Paolo Bonzinia5665052019-06-10 12:05:14 +0200266# Needed by "meson install"
267export DESTDIR
bellard612384d2003-03-22 17:31:19 +0000268
Fam Zheng324027c2016-06-01 12:25:17 +0800269include $(SRC_PATH)/tests/docker/Makefile.include
Fam Zhengb1fb9a62017-09-05 10:11:58 +0800270include $(SRC_PATH)/tests/vm/Makefile.include
Marc-André Lureau0d8e0652016-09-13 18:20:33 +0400271
Philippe Mathieu-Daudéc355de52020-03-05 01:48:54 +0100272print-help-run = printf " %-30s - %s\\n" "$1" "$2"
Greg Kurz784106e2020-11-05 16:47:00 +0100273print-help = @$(call print-help-run,$1,$2)
Philippe Mathieu-Daudéc355de52020-03-05 01:48:54 +0100274
Marc-André Lureau0d8e0652016-09-13 18:20:33 +0400275.PHONY: help
276help:
277 @echo 'Generic targets:'
Philippe Mathieu-Daudéc355de52020-03-05 01:48:54 +0100278 $(call print-help,all,Build all)
Philippe Mathieu-Daudéc355de52020-03-05 01:48:54 +0100279 $(call print-help,dir/file.o,Build specified target only)
280 $(call print-help,install,Install QEMU, documentation and tools)
281 $(call print-help,ctags/TAGS,Generate tags file for editors)
282 $(call print-help,cscope,Generate cscope index)
Paolo Bonzini968b4db2020-02-03 14:45:33 +0100283 $(call print-help,sparse,Run sparse on the QEMU source)
Marc-André Lureau0d8e0652016-09-13 18:20:33 +0400284 @echo ''
Alex Bennéec17a3862020-09-09 12:27:41 +0100285ifeq ($(CONFIG_PLUGIN),y)
286 @echo 'Plugin targets:'
287 $(call print-help,plugins,Build the example TCG plugins)
288 @echo ''
289endif
Marc-André Lureau0d8e0652016-09-13 18:20:33 +0400290 @echo 'Cleaning targets:'
Philippe Mathieu-Daudéc355de52020-03-05 01:48:54 +0100291 $(call print-help,clean,Remove most generated files but keep the config)
Philippe Mathieu-Daudéc355de52020-03-05 01:48:54 +0100292 $(call print-help,distclean,Remove all generated files)
293 $(call print-help,dist,Build a distributable tarball)
Marc-André Lureau0d8e0652016-09-13 18:20:33 +0400294 @echo ''
295 @echo 'Test targets:'
Philippe Mathieu-Daudéc355de52020-03-05 01:48:54 +0100296 $(call print-help,check,Run all tests (check-help for details))
Paolo Bonzini9ed72472020-09-02 07:25:19 -0400297 $(call print-help,bench,Run all benchmarks)
Philippe Mathieu-Daudéc355de52020-03-05 01:48:54 +0100298 $(call print-help,docker,Help about targets running tests inside containers)
299 $(call print-help,vm-help,Help about targets running tests inside VM)
Marc-André Lureau0d8e0652016-09-13 18:20:33 +0400300 @echo ''
301 @echo 'Documentation targets:'
Peter Maydell4ac2ee12020-09-25 17:23:04 +0100302 $(call print-help,html man,Build documentation in specified format)
Marc-André Lureau0d8e0652016-09-13 18:20:33 +0400303 @echo ''
304ifdef CONFIG_WIN32
305 @echo 'Windows targets:'
Philippe Mathieu-Daudéc355de52020-03-05 01:48:54 +0100306 $(call print-help,installer,Build NSIS-based installer for QEMU)
Stefan Hajnoczi4bad7c32020-09-14 10:52:31 +0100307ifdef CONFIG_QGA_MSI
Philippe Mathieu-Daudéc355de52020-03-05 01:48:54 +0100308 $(call print-help,msi,Build MSI-based installer for qemu-ga)
Marc-André Lureau0d8e0652016-09-13 18:20:33 +0400309endif
310 @echo ''
311endif
Philippe Mathieu-Daudéc355de52020-03-05 01:48:54 +0100312 $(call print-help,$(MAKE) [targets],(quiet build, default))
313 $(call print-help,$(MAKE) V=1 [targets],(verbose build))
Paolo Bonzini660f7932020-09-01 12:10:05 -0400314
315# will delete the target of a rule if commands exit with a nonzero exit status
316.DELETE_ON_ERROR:
317
318print-%:
319 @echo '$*=$($*)'