Skip to content

Commit d69cda7

Browse files
committed
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 <[email protected]> Signed-off-by: Peter Maydell <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-id: [email protected]
1 parent 9fc8711 commit d69cda7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,7 @@ clean: recurse-clean
775775
rm -f storage-daemon/qapi/qapi-gen-timestamp
776776
rm -rf qga/qapi-generated
777777
rm -f config-all-devices.mak
778+
rm -f $(SUBDIR_DEVICES_MAK)
778779

779780
VERSION ?= $(shell cat VERSION)
780781

0 commit comments

Comments
 (0)