@@ -110,7 +110,18 @@ reconfigure:
110
110
CUSTOM_CONFIG_DIR="$(CUSTOM_CONFIG_DIR)" \
111
111
$(RECONFIGURE_COMMAND) )
112
112
113
- .PHONY: print-modules print-targets print-tests print-configuration reconfigure
113
+ # Create files that are needed to run most targets in Main.gmk
114
+ create-make-helpers:
115
+ ( cd $(TOPDIR) && \
116
+ $(MAKE) $(MAKE_ARGS) -j 1 -f make/GenerateFindTests.gmk \
117
+ $(USER_MAKE_VARS) )
118
+ ( cd $(TOPDIR) && \
119
+ $(MAKE) $(MAKE_ARGS) -j 1 -f make/Main.gmk $(USER_MAKE_VARS) \
120
+ UPDATE_MODULE_DEPS=true NO_RECIPES=true \
121
+ create-main-targets-include )
122
+
123
+ .PHONY: print-modules print-targets print-tests print-configuration \
124
+ reconfigure create-make-helpers
114
125
115
126
##############################################################################
116
127
# The main target. This will delegate all other targets into Main.gmk.
@@ -130,7 +141,7 @@ TARGET_DESCRIPTION := target$(if $(word 2, $(MAIN_TARGETS)),s) \
130
141
# variables are explicitly propagated using $(USER_MAKE_VARS).
131
142
main: MAKEOVERRIDES :=
132
143
133
- main: $(INIT_TARGETS)
144
+ main: $(INIT_TARGETS) create-make-helpers
134
145
ifneq ($(SEQUENTIAL_TARGETS)$(PARALLEL_TARGETS), )
135
146
$(call RotateLogFiles)
136
147
$(ECHO) "Building $(TARGET_DESCRIPTION)" $(BUILD_LOG_PIPE_SIMPLE)
@@ -142,12 +153,7 @@ main: $(INIT_TARGETS)
142
153
$(SEQUENTIAL_TARGETS) )
143
154
# We might have cleaned away essential files, recreate them.
144
155
( 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 )
156
+ $(MAKE) $(MAKE_ARGS) -j 1 -f make/Init.gmk create-make-helpers )
151
157
endif
152
158
ifneq ($(PARALLEL_TARGETS), )
153
159
$(call PrepareFailureLogs)
0 commit comments