File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,10 +37,6 @@ include MakeFileStart.gmk
3737include $(TOPDIR)/make/InitSupport.gmk
3838include LogUtils.gmk
3939
40- # Force early generation of module-deps.gmk
41- GENERATE_MODULE_DEPS_FILE := true
42- include Modules.gmk
43-
4440# Inclusion of this pseudo-target will cause make to execute this file
4541# serially, regardless of -j.
4642.NOTPARALLEL:
@@ -144,6 +140,14 @@ main: $(INIT_TARGETS)
144140 ( cd $(TOPDIR) && \
145141 $(MAKE) $(MAKE_ARGS) -j 1 -f make/Main.gmk $(USER_MAKE_VARS) \
146142 $(SEQUENTIAL_TARGETS) )
143+ # We might have cleaned away essential files, recreate them.
144+ ( cd $(TOPDIR) && \
145+ $(MAKE) $(MAKE_ARGS) -j 1 -f make/GenerateFindTests.gmk \
146+ $(USER_MAKE_VARS) )
147+ ( cd $(TOPDIR) && \
148+ $(MAKE) $(MAKE_ARGS) -j 1 -f make/Main.gmk $(USER_MAKE_VARS) \
149+ UPDATE_MODULE_DEPS=true NO_RECIPES=true \
150+ create-main-targets-include )
147151 endif
148152 ifneq ($(PARALLEL_TARGETS), )
149153 $(call PrepareFailureLogs)
Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ include MakeFileStart.gmk
4242include $(TOPDIR)/make/MainSupport.gmk
4343
4444include FindTests.gmk
45+
46+ ifeq ($(UPDATE_MODULE_DEPS), true)
47+ # Update module-deps.gmk if requested. This is read in Modules.gmk.
48+ GENERATE_MODULE_DEPS_FILE := true
49+ endif
50+
4551include Modules.gmk
4652
4753# Are we requested to ignore dependencies?
Original file line number Diff line number Diff line change @@ -268,11 +268,12 @@ define DefineMainTargets
268268
269269 $$(main_targets_file):
270270 @( cd $$(TOPDIR) && \
271- $$(MAKE) $$(MAKE_LOG_FLAGS) -r -R -f $$(TOPDIR)/make/GenerateFindTests.gmk \
271+ $$(MAKE) $$(MAKE_LOG_FLAGS) -s - r -R -f $$(TOPDIR)/make/GenerateFindTests.gmk \
272272 -I $$(TOPDIR)/make/common SPEC=$$(SPEC_FILE) TOPDIR_ALT=$$(TOPDIR))
273273 @( cd $$(TOPDIR) && \
274- $$(MAKE) $$(MAKE_LOG_FLAGS) -r -R -f $$(TOPDIR)/make/Main.gmk \
275- -I $$(TOPDIR)/make/common SPEC=$$(SPEC_FILE) TOPDIR_ALT=$$(TOPDIR) NO_RECIPES=true \
274+ $$(MAKE) $$(MAKE_LOG_FLAGS) -s -r -R -f $$(TOPDIR)/make/Main.gmk \
275+ -I $$(TOPDIR)/make/common SPEC=$$(SPEC_FILE) TOPDIR_ALT=$$(TOPDIR) \
276+ UPDATE_MODULE_DEPS=true NO_RECIPES=true \
276277 $$(MAKE_LOG_VARS) \
277278 create-main-targets-include )
278279
You can’t perform that action at this time.
0 commit comments