lkml.org 
[lkml]   [2015]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] tools/lib: improve clean target
From
On 18 June 2015 at 15:52,  <riku.voipio@linaro.org> wrote:
> From: Riku Voipio <riku.voipio@linaro.org>
>
> The clean targets miss some .cmd and .d files.

Is this patch slipping through cracks?

> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
> ---
> tools/lib/api/Makefile | 2 +-
> tools/lib/traceevent/Makefile | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/lib/api/Makefile b/tools/lib/api/Makefile
> index 8bd9606..fe1b02c 100644
> --- a/tools/lib/api/Makefile
> +++ b/tools/lib/api/Makefile
> @@ -36,7 +36,7 @@ $(LIBFILE): $(API_IN)
>
> clean:
> $(call QUIET_CLEAN, libapi) $(RM) $(LIBFILE); \
> - find $(if $(OUTPUT),$(OUTPUT),.) -name \*.o | xargs $(RM)
> + find $(if $(OUTPUT),$(OUTPUT),.) -name \*.o -or -name \*.o.cmd -or -name \*.o.d | xargs $(RM)
>
> FORCE:
>
> diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile
> index 6daaff6..7851df1 100644
> --- a/tools/lib/traceevent/Makefile
> +++ b/tools/lib/traceevent/Makefile
> @@ -268,7 +268,7 @@ install: install_lib
>
> clean:
> $(call QUIET_CLEAN, libtraceevent) \
> - $(RM) *.o *~ $(TARGETS) *.a *.so $(VERSION_FILES) .*.d \
> + $(RM) *.o *~ $(TARGETS) *.a *.so $(VERSION_FILES) .*.d .*.cmd \
> $(RM) TRACEEVENT-CFLAGS tags TAGS
>
> PHONY += force plugins
> --
> 2.1.4
>


\
 
 \ /
  Last update: 2015-07-08 20:41    [W:0.439 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site