build system: more fixes to parallel build
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/Makefile b/Makefile
index 7084c5c..3a49a69 100644
--- a/Makefile
+++ b/Makefile
@@ -359,8 +359,10 @@
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 ;