From patchwork Fri Dec 17 05:50:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 12683711 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9617DC4167B for ; Fri, 17 Dec 2021 05:50:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233095AbhLQFux (ORCPT ); Fri, 17 Dec 2021 00:50:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233098AbhLQFuw (ORCPT ); Fri, 17 Dec 2021 00:50:52 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBAEDC061574 for ; Thu, 16 Dec 2021 21:50:51 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 94D02B82739 for ; Fri, 17 Dec 2021 05:50:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61E31C36AE1; Fri, 17 Dec 2021 05:50:49 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.95) (envelope-from ) id 1my68h-00057B-Je; Fri, 17 Dec 2021 00:50:43 -0500 From: Steven Rostedt To: linux-trace-devel@vger.kernel.org Cc: "Steven Rostedt (VMware)" Subject: [PATCH v2 14/15] libtracefs: Add clean descend Date: Fri, 17 Dec 2021 00:50:40 -0500 Message-Id: <20211217055041.19559-15-rostedt@goodmis.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211217055041.19559-1-rostedt@goodmis.org> References: <20211217055041.19559-1-rostedt@goodmis.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org From: "Steven Rostedt (VMware)" Have the output of cleaning a directory be a bit cleaner. This actually breaks the clean, but because of the way samples works, to fix that first will delete the Makefile of samples. Signed-off-by: Steven Rostedt (VMware) --- Makefile | 6 +++--- scripts/utils.mk | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 6e18e0a015f5..cd7cf28a2acd 100644 --- a/Makefile +++ b/Makefile @@ -375,9 +375,9 @@ samples: libtracefs.a force $(Q)$(call descend,$(src)/samples,all) clean: - $(Q)$(MAKE) -C $(src)/utest clean - $(Q)$(MAKE) -C $(src)/src clean - $(Q)$(MAKE) -C $(src)/samples clean + $(Q)$(call descend_clean,utest) + $(Q)$(call descend_clean,src) + $(Q)$(call descend_clean,samples) $(Q)$(call do_clean, \ $(TARGETS) $(bdir)/*.a $(bdir)/*.so $(bdir)/*.so.* $(bdir)/*.o $(bdir)/.*.d \ $(PKG_CONFIG_FILE) \ diff --git a/scripts/utils.mk b/scripts/utils.mk index 3bf59c550b1d..5f43de1385cd 100644 --- a/scripts/utils.mk +++ b/scripts/utils.mk @@ -123,6 +123,8 @@ descend = \ mkdir -p $(obj)/$(BASE1); \ $(MAKE) $(PRINT_DIR) bdir=$(obj)/$(BASE1) -C $(1) $(2)) +descend_clean = \ + $(MAKE) $(PRINT_DIR) bdir=$(obj)/$(BASE1) -C $(1) clean define make_version.h (echo '/* This file is automatically generated. Do not modify. */'; \