Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758808AbbGHSW0 (ORCPT ); Wed, 8 Jul 2015 14:22:26 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:36634 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751757AbbGHSWZ (ORCPT ); Wed, 8 Jul 2015 14:22:25 -0400 MIME-Version: 1.0 In-Reply-To: <1434631938-12681-1-git-send-email-riku.voipio@linaro.org> References: <1434631938-12681-1-git-send-email-riku.voipio@linaro.org> Date: Wed, 8 Jul 2015 21:22:23 +0300 Message-ID: Subject: Re: [PATCH] tools/lib: improve clean target From: Riku Voipio To: linux-kbuild , linux-kernel@vger.kernel.org Cc: mingo@redhat.com, a.p.zijlstra@chello.nl, Riku Voipio , acme@redhat.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1629 Lines: 47 On 18 June 2015 at 15:52, wrote: > From: Riku Voipio > > The clean targets miss some .cmd and .d files. Is this patch slipping through cracks? > Signed-off-by: Riku Voipio > --- > 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 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/