From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: kbuild devel list <linux-kbuild@vger.kernel.org>
Subject: [PATCH] KBUILD: Combine config and %config targets.
Date: Thu, 16 Jul 2009 05:20:37 -0400 (EDT) [thread overview]
Message-ID: <alpine.LFD.2.00.0907160519001.11423@localhost> (raw)
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 <rpjday@crashcourse.ca>
---
AFAICT, there seems to be no reason to keep these as separate rules
since they are identical.
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 $@
========================================================================
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
========================================================================
reply other threads:[~2009-07-16 9:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LFD.2.00.0907160519001.11423@localhost \
--to=rpjday@crashcourse.ca \
--cc=linux-kbuild@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox