build: Don't remove user-supplied xen-version during make clean
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Wed, 7 Mar 2012 07:43:02 +0000 (07:43 +0000)
committerGeorge Dunlap <george.dunlap@eu.citrix.com>
Wed, 7 Mar 2012 07:43:02 +0000 (07:43 +0000)
xen/Makefile is designed to allow the user to supply a file named
xen/xen-include to change the format of xen version strings.
Unfortunately, "make clean" removes xen/xen*, which will remove this
file.

Make the clean process more targeted.

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/Makefile

index 564f7080ee5809c26197c724d643a6423f52e5e7..fc8ce18f3094e50a24d4dc3128c60c809bb1f8d7 100644 (file)
@@ -61,7 +61,7 @@ _clean: delete-unfresh-files
        $(MAKE) -f $(BASEDIR)/Rules.mk -C xsm clean
        $(MAKE) -f $(BASEDIR)/Rules.mk -C crypto clean
        $(MAKE) -f $(BASEDIR)/Rules.mk -C arch/$(TARGET_ARCH) clean
-       rm -f include/asm *.o $(TARGET)* *~ core
+       rm -f include/asm *.o $(TARGET) $(TARGET).gz $(TARGET)-syms *~ core
        rm -f include/asm-*/asm-offsets.h
        [ -d tools/figlet ] && rm -f .banner*