kbuild: Do not run modules_install and install in paralel
[linux-2.6-block.git] / Makefile
index 3a0234f50f36fb45461fe235c1a91addd4d6214b..b6b968e7f9dc8863288ad4934ad1d104ca042bb5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -495,6 +495,12 @@ ifeq ($(KBUILD_EXTMOD),)
                 endif
         endif
 endif
+# install and module_install need also be processed one by one
+ifneq ($(filter install,$(MAKECMDGOALS)),)
+        ifneq ($(filter modules_install,$(MAKECMDGOALS)),)
+               mixed-targets := 1
+        endif
+endif
 
 ifeq ($(mixed-targets),1)
 # ===========================================================================