qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] Makefile.target: Update clean command to clean


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH] Makefile.target: Update clean command to clean hw/ directory
Date: Wed, 20 Jun 2012 15:58:53 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120421 Thunderbird/12.0

Am 20.06.2012 15:54, schrieb Peter Maydell:
> Now we create object files in a hierarchy under hw/, so the
> 'clean' target must also updated to delete those object files.

"be updated"

Other than that and the -f looks good. Thanks.

/-F

> Rather than using a manual list of subdirectories which will
> easily drift out of date, we just delete all .o and .d files
> in the target directory hierarchy.
> 
> Signed-off-by: Peter Maydell <address@hidden>
> ---
>  Makefile.target |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Makefile.target b/Makefile.target
> index 550d889..686ba8d 100644
> --- a/Makefile.target
> +++ b/Makefile.target
> @@ -193,8 +193,8 @@ qmp-commands-old.h: $(SRC_PATH)/qmp-commands.hx
>       $(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"  GEN  
>  $(TARGET_DIR)$@")
>  
>  clean:
> -     rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o
> -     rm -f *.d */*.d tcg/*.o ide/*.o 9pfs/*.o kvm/*.o
> +     rm -f *.a *~ $(PROGS)
> +     rm $(shell find . -name '*.[od]')
>       rm -f hmp-commands.h qmp-commands-old.h gdbstub-xml.c
>  ifdef CONFIG_TRACE_SYSTEMTAP
>       rm -f *.stp


-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]