From patchwork Thu Jul 16 09:20:37 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Robert P. J. Day" X-Patchwork-Id: 35840 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n6G9N2u9022596 for ; Thu, 16 Jul 2009 09:23:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752577AbZGPJXC (ORCPT ); Thu, 16 Jul 2009 05:23:02 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754170AbZGPJXB (ORCPT ); Thu, 16 Jul 2009 05:23:01 -0400 Received: from astoria.ccjclearline.com ([64.235.106.9]:41170 "EHLO astoria.ccjclearline.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752577AbZGPJXA (ORCPT ); Thu, 16 Jul 2009 05:23:00 -0400 Received: from cpe002129687b04-cm001225dbafb6.cpe.net.cable.rogers.com ([99.235.241.187] helo=crashcourse.ca) by astoria.ccjclearline.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1MRNB5-0002PT-8k for linux-kbuild@vger.kernel.org; Thu, 16 Jul 2009 05:22:59 -0400 Date: Thu, 16 Jul 2009 05:20:37 -0400 (EDT) From: "Robert P. J. Day" X-X-Sender: rpjday@localhost To: kbuild devel list Subject: [PATCH] KBUILD: Combine config and %config targets. Message-ID: User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - astoria.ccjclearline.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - crashcourse.ca X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Since the rules appear to be identical, might as well combine the targets of config and %config in the same rule. Signed-off-by: Robert P. J. Day --- AFAICT, there seems to be no reason to keep these as separate rules since they are identical. ======================================================================== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Annoying Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday "Kernel Newbie Corner" column @ linux.com: http://cli.gs/WG6WYX ======================================================================== -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Makefile b/Makefile index be0abac..cea9a7d 100644 --- a/Makefile +++ b/Makefile @@ -443,11 +443,7 @@ ifeq ($(config-targets),1) include $(srctree)/arch/$(SRCARCH)/Makefile export KBUILD_DEFCONFIG KBUILD_KCONFIG -config: scripts_basic outputmakefile FORCE - $(Q)mkdir -p include/linux include/config - $(Q)$(MAKE) $(build)=scripts/kconfig $@ - -%config: scripts_basic outputmakefile FORCE +config %config: scripts_basic outputmakefile FORCE $(Q)mkdir -p include/linux include/config $(Q)$(MAKE) $(build)=scripts/kconfig $@