aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2018-01-04 17:05:08 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2018-01-12 13:22:02 +0100
commitde1da442ea38b7f4627072df0cd80f3537cf8390 (patch)
tree09f8c521a50264a339e54a3085085cc62748cb35 /docs
parent42a77f1ce4934b243df003f95bda88530631387a (diff)
downloadqemu-de1da442ea38b7f4627072df0cd80f3537cf8390.zip
qemu-de1da442ea38b7f4627072df0cd80f3537cf8390.tar.gz
qemu-de1da442ea38b7f4627072df0cd80f3537cf8390.tar.bz2
build-sys: add a rule to print a variable
$ make print-CFLAGS CFLAGS=-fsanitize=address -Og -g Trick from various sources: https://stackoverflow.com/questions/16467718/how-to-print-out-a-variable-in-makefile https://www.cmcrossroads.com/article/printing-value-makefile-variable Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20180104160523.22995-4-marcandre.lureau@redhat.com> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/devel/build-system.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/devel/build-system.txt b/docs/devel/build-system.txt
index 386ef36..52501f2 100644
--- a/docs/devel/build-system.txt
+++ b/docs/devel/build-system.txt
@@ -510,3 +510,16 @@ default-configs/$TARGET-NAME file as input.
This is the entrypoint used when make recurses to build a single system
or userspace emulator target. It is merely a symlink back to the
Makefile.target in the top level.
+
+
+Useful make targets
+===================
+
+- help
+
+ Print a help message for the most common build targets.
+
+- print-VAR
+
+ Print the value of the variable VAR. Useful for debugging the build
+ system.