# To avoid any implicit rule to kick in, define an empty command.
scripts/basic/%: scripts_basic ;
+# bbox: we have helpers in applets/
+PHONY += applets_dir
+applets_dir:
+ $(Q)$(MAKE) $(build)=applets
+
+applets/%: applets_dir ;
+
PHONY += outputmakefile
# outputmakefile generates a Makefile in the output directory, if using a
# separate output directory. This allows convenient use of make in the
$(Q)rm -f $(MODVERDIR)/*
endif
-archprepare: prepare1 scripts_basic
+archprepare: prepare1 scripts_basic applets_dir
prepare0: archprepare FORCE
$(Q)$(MAKE) $(build)=.
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