|
@@ -500,8 +500,16 @@ ifeq ($(mixed-targets),1)
|
|
# We're called with mixed targets (*config and build targets).
|
|
# We're called with mixed targets (*config and build targets).
|
|
# Handle them one by one.
|
|
# Handle them one by one.
|
|
|
|
|
|
-%:: FORCE
|
|
|
|
- $(Q)$(MAKE) -C $(srctree) KBUILD_SRC= $@
|
|
|
|
|
|
+PHONY += $(MAKECMDGOALS) __build_one_by_one
|
|
|
|
+
|
|
|
|
+$(filter-out __build_one_by_one, $(MAKECMDGOALS)): __build_one_by_one
|
|
|
|
+ @:
|
|
|
|
+
|
|
|
|
+__build_one_by_one:
|
|
|
|
+ $(Q)set -e; \
|
|
|
|
+ for i in $(MAKECMDGOALS); do \
|
|
|
|
+ $(MAKE) -f $(srctree)/Makefile $$i; \
|
|
|
|
+ done
|
|
|
|
|
|
else
|
|
else
|
|
ifeq ($(config-targets),1)
|
|
ifeq ($(config-targets),1)
|