Received: by 10.213.65.68 with SMTP id h4csp353970imn; Fri, 23 Mar 2018 06:09:50 -0700 (PDT) X-Google-Smtp-Source: AG47ELuG/GFRDi7rQrXmjhWq34LEXXshT+3jAuMwX/zw0gckv1KS38U0Wd5xl+y+Scj0dqk9y6s7 X-Received: by 10.99.96.79 with SMTP id u76mr20265972pgb.199.1521810590379; Fri, 23 Mar 2018 06:09:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521810590; cv=none; d=google.com; s=arc-20160816; b=OhlnlUEZrmyDkqz9AkZ9YSn5pVIuBG24YTTD7wHNGpnjBED/niyuEKnC0VpgtegYSE KJVCVWCVhSDNl9fcAvYznMrlLrikj7gf1e+7W075dQsxe0KZNVbDh5Bmbl8pOLdrP6Lz Y9ekERFrUuCLTCz4VNLRW75RwMjqM1Rx+bvw7R7+rb96qDcHivZF0lwzeDBDQHYdZoun IdbH4zY37AgqJcx1Gu72/O52dH7h2VV9Nubnda+DsTeGnUMWClECCic+BxLEzM73MBsI yc50jbdWpa82vH7OTZdL2fupeIWv4zf1V8r1yfSHnmo8eoQISNc2oZ0JK9tutzhT8RV6 xcLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=Hp1i9iAGEMGOo4yWhdbFlj9tPSN5pQ5G9trHOeMOb1Y=; b=uWTYPOILZawQaO3qfg1LMkQiFll3jhTGH+/VdE0zsvu3fijeqnM95vbsOGcxtZVoWv lTi2eBvI3YrbmCXO0kErFCkY7YHhDzGlzuEQsJlJDxh2iivfj5j5A8iRleNGAc9i/x5+ YBhpiRqMrjxxm8ohC9td7Mrfi27x/tQCwWo3uWlLg2qIB7Dkm6esgFWhEx2ZLcM20Ark zO3f2ydqxh+3A0DG/K6L7kx1F/GPYkSbUC5h49xgH8cUnRADypTi45vU8Vsmbz+XIhEr qFeQLEBO4wxuIhACF3lA/FAlNkI7xAvtL3DmgBgqFxjjgTWC92zi8/G/fW4XCj+Bi4NK YJMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ybyBlK6H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2-v6si8847180plh.259.2018.03.23.06.09.35; Fri, 23 Mar 2018 06:09:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ybyBlK6H; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753224AbeCWNGL (ORCPT + 99 others); Fri, 23 Mar 2018 09:06:11 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:52680 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753147AbeCWNGA (ORCPT ); Fri, 23 Mar 2018 09:06:00 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id w2ND4mgY011418; Fri, 23 Mar 2018 22:04:54 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com w2ND4mgY011418 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1521810298; bh=Hp1i9iAGEMGOo4yWhdbFlj9tPSN5pQ5G9trHOeMOb1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ybyBlK6HZxOUIxrMY1cNeyRmA2QaReht5w9REDL3G15ljjSH61ICx9klZf3swmeIf 69LMBoUGEr0inEvUS0FHij+OLoGxPyZjLUKlTW6W9gVbHuStwppSDuu6M24HX3FVpr RDRHUiUC8aoCFoDn8L0WEtYUhNsAfvDxi3i7kR5dN35xiWDgrcc7nHjsFMK08lj1SM fc84wpYQAx9EOS54rdCeN9SGekmgfkTe+/dsFFop1r3eRrw/pjEJPG3npI3kksRipK qY6vYcfcDpM1wNPO7r4y5PhYDahfBsRkkdOdYB8gaKAdO87E207y9MdNs2lMV5u7wM cKTkr9pUXo6Yg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Sam Ravnborg , Michal Marek , linux-kernel@vger.kernel.org, Arnd Bergmann , Laurent Pinchart , Frank Rowand , Geert Uytterhoeven , Masahiro Yamada Subject: [PATCH 02/10] kbuild: clean up *.lex.c and *.tab.[ch] patterns from top-level Makefile Date: Fri, 23 Mar 2018 22:04:31 +0900 Message-Id: <1521810279-6282-2-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521810279-6282-1-git-send-email-yamada.masahiro@socionext.com> References: <1521810279-6282-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Files suffixed by .lex.c, .tab.[ch] are generated lexers, parsers, respectively. Clean them up globally from the top Makefile. Some of the final host programs they are linked into are needed for building external modules, but those intermediates are unneeded. They can be cleaned away by 'make clean' instead of 'make mrproper'. Signed-off-by: Masahiro Yamada --- Makefile | 1 + scripts/dtc/Makefile | 6 ++---- scripts/genksyms/Makefile | 2 -- scripts/kconfig/Makefile | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 493e267..168432e 100644 --- a/Makefile +++ b/Makefile @@ -1613,6 +1613,7 @@ clean: $(clean-dirs) -o -name '*.dwo' -o -name '*.lst' \ -o -name '*.su' \ -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ + -o -name '*.lex.c' -o -name '*.tab.[ch]' \ -o -name '*.symtypes' -o -name 'modules.order' \ -o -name modules.builtin -o -name '.tmp_*.o.*' \ -o -name .cache.mk \ diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile index a88b8c9..d17ba64 100644 --- a/scripts/dtc/Makefile +++ b/scripts/dtc/Makefile @@ -28,7 +28,5 @@ HOSTCFLAGS_dtc-parser.tab.o := $(HOSTCFLAGS_DTC) # dependencies on generated files need to be listed explicitly $(obj)/dtc-lexer.lex.o: $(obj)/dtc-parser.tab.h -# generated files need to include *.cmd and be cleaned explicitly -generated-files := dtc-lexer.lex.c dtc-parser.tab.c dtc-parser.tab.h -targets := $(generated-files) -clean-files := $(generated-files) +# generated files need to include *.cmd +targets := dtc-lexer.lex.c dtc-parser.tab.c dtc-parser.tab.h diff --git a/scripts/genksyms/Makefile b/scripts/genksyms/Makefile index 34d6ab1..0ccac51 100644 --- a/scripts/genksyms/Makefile +++ b/scripts/genksyms/Makefile @@ -11,5 +11,3 @@ HOSTCFLAGS_lex.lex.o := -I$(src) # dependencies on generated files need to be listed explicitly $(obj)/lex.lex.o: $(obj)/parse.tab.h - -clean-files := lex.lex.c parse.tab.c parse.tab.h diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index f9bdd02..1dcd797 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -209,7 +209,7 @@ hostprogs-y := conf nconf mconf kxgettext qconf gconf targets += zconf.tab.c zconf.lex.c clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck -clean-files += zconf.tab.c zconf.lex.c gconf.glade.h +clean-files += gconf.glade.h clean-files += config.pot linux.pot # Check that we have the required ncurses stuff installed for lxdialog (menuconfig) -- 2.7.4