aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2020-07-17 16:25:08 +0100
committerPeter Maydell <peter.maydell@linaro.org>2020-07-20 11:02:46 +0100
commitd69cda7ed722e445d03e1ace6563bab3a76e023e (patch)
tree597cd5464c4597f7a0784e989d0e7bbc5d0da2fb /Makefile
parent9fc87111005e8903785db40819af66b8f85b8b96 (diff)
downloadqemu-d69cda7ed722e445d03e1ace6563bab3a76e023e.zip
qemu-d69cda7ed722e445d03e1ace6563bab3a76e023e.tar.gz
qemu-d69cda7ed722e445d03e1ace6563bab3a76e023e.tar.bz2
Makefile: Remove config-devices.mak on "make clean"
The config-devices.mak files are generated by "make", and so they should be deleted by "make clean". (This is different from config-host.mak and config-all-disas.mak, which are created by "configure" and so only deleted by "make distclean".) If we don't delete these files on "make clean", then the build tree is left in a state where it has the config-devices.mak file but not the config-devices.mak.d file, and make will not realize that it needs to rebuild config-devices.mak if, for instance, hw/sd/Kconfig changes. NB: config-all-devices.mak is also generated by "make", but we already remove it on "make clean". Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20200717152508.10272-1-peter.maydell@linaro.org
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 32345c6..c2120d8 100644
--- a/Makefile
+++ b/Makefile
@@ -775,6 +775,7 @@ clean: recurse-clean
rm -f storage-daemon/qapi/qapi-gen-timestamp
rm -rf qga/qapi-generated
rm -f config-all-devices.mak
+ rm -f $(SUBDIR_DEVICES_MAK)
VERSION ?= $(shell cat VERSION)