[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[qemu-xen staging] Makefile: Remove config-devices.mak on "make clean"



commit d69cda7ed722e445d03e1ace6563bab3a76e023e
Author:     Peter Maydell <peter.maydell@xxxxxxxxxx>
AuthorDate: Fri Jul 17 16:25:08 2020 +0100
Commit:     Peter Maydell <peter.maydell@xxxxxxxxxx>
CommitDate: Mon Jul 20 11:02:46 2020 +0100

    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@xxxxxxxxxx>
    Signed-off-by: Peter Maydell <peter.maydell@xxxxxxxxxx>
    Reviewed-by: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>
    Message-id: 20200717152508.10272-1-peter.maydell@xxxxxxxxxx
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile b/Makefile
index 32345c610e..c2120d8d48 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)
 
--
generated by git-patchbot for /home/xen/git/qemu-xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.