From 02fdabd69d38849ac9f68659827d4590c8f78030 Mon Sep 17 00:00:00 2001 From: Cesar Prados Date: Fri, 3 May 2013 11:14:33 +0200 Subject: [PATCH] Makefile: change to support gmake-3.82 Split a rule into two rules, to make make happy. In previous versions of make it was acceptable to list one or more explicit targets followed by one or more pattern targets in the same rule and it worked "as expected". However, this was not documented as acceptable and if you listed any explicit targets AFTER the pattern targets, the entire rule would be mis-parsed. This release removes this ability completely: make will generate an error message if you mix explicit and pattern targets in the same rule. You must split these rules into two rules: one for the pattern and one for the explicit targets. The Linux kernel source has already been modified in this way (in newer kernels). --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ac4589d4..3e59ac9a 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,10 @@ silentoldconfig: @mkdir -p include/config $(MAKE) -f Makefile.kconfig $@ -scripts_basic config %config: +scripts_basic config: + $(MAKE) -f Makefile.kconfig $@ + +%config: $(MAKE) -f Makefile.kconfig $@ defconfig: -- 2.18.1