build system: more fixes to parallel build
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 24 Nov 2009 23:22:31 +0000 (00:22 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 24 Nov 2009 23:22:31 +0000 (00:22 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Makefile
applets/Kbuild

index 7084c5c1d0f54aa7270e45d1d40a2751302b5921..3a49a6971776d7cb88d239ab631b260482226f85 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -359,8 +359,10 @@ scripts_basic:
 scripts/basic/%: scripts_basic ;
 
 # bbox: we have helpers in applets/
+# we depend on scripts_basic, since scripts/basic/fixdep
+# must be built before any other host prog
 PHONY += applets_dir
-applets_dir:
+applets_dir: scripts_basic
        $(Q)$(MAKE) $(build)=applets
 
 applets/%: applets_dir ;
index 88e98167a228087f5a642790efa425594e84180b..a6b0cf6fb9f07f2fea9c00271468211c25e0333a 100644 (file)
@@ -12,9 +12,6 @@ hostprogs-y += usage usage_pod applet_tables
 
 always:= $(hostprogs-y)
 
-# fixdep is needed to compile other host programs
-$(addprefix $(obj)/,$(always)): $(objtree)/scripts/basic/fixdep
-
 # Generated files need additional love
 
 # This trick decreases amount of rebuilds