< prev index next >

make/Init.gmk

Print this page




 250   # variables are explicitely propagated using $(USER_MAKE_VARS).
 251   main: MAKEOVERRIDES :=
 252 
 253   main: $(INIT_TARGETS)
 254         ifneq ($(SEQUENTIAL_TARGETS)$(PARALLEL_TARGETS), )
 255           $(call RotateLogFiles)
 256           $(BUILD_LOG_WRAPPER) $(PRINTF) "Building $(TARGET_DESCRIPTION)\n"
 257           ifneq ($(SEQUENTIAL_TARGETS), )
 258             # Don't touch build output dir since we might be cleaning. That
 259             # means no log wrapper.
 260             ( cd $(TOPDIR) && \
 261                 $(MAKE) $(MAKE_ARGS) -j 1 -f make/Main.gmk $(USER_MAKE_VARS) \
 262                 $(SEQUENTIAL_TARGETS) )
 263           endif
 264           ifneq ($(PARALLEL_TARGETS), )
 265             $(call StartGlobalTimer)
 266             $(call PrepareSmartJavac)
 267             ( cd $(TOPDIR) && \
 268                 $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) $(OUTPUT_SYNC_FLAG) \
 269                 -j $(JOBS) -f make/Main.gmk $(USER_MAKE_VARS) \
 270                 $(PARALLEL_TARGETS) )


 271             $(call CleanupSmartJavac)
 272             $(call StopGlobalTimer)
 273             $(call ReportBuildTimes)
 274           endif
 275           $(BUILD_LOG_WRAPPER) $(PRINTF) "Finished building $(TARGET_DESCRIPTION)\n"
 276         endif
 277 
 278   .PHONY: print-targets print-modules reconfigure main
 279 endif


 250   # variables are explicitely propagated using $(USER_MAKE_VARS).
 251   main: MAKEOVERRIDES :=
 252 
 253   main: $(INIT_TARGETS)
 254         ifneq ($(SEQUENTIAL_TARGETS)$(PARALLEL_TARGETS), )
 255           $(call RotateLogFiles)
 256           $(BUILD_LOG_WRAPPER) $(PRINTF) "Building $(TARGET_DESCRIPTION)\n"
 257           ifneq ($(SEQUENTIAL_TARGETS), )
 258             # Don't touch build output dir since we might be cleaning. That
 259             # means no log wrapper.
 260             ( cd $(TOPDIR) && \
 261                 $(MAKE) $(MAKE_ARGS) -j 1 -f make/Main.gmk $(USER_MAKE_VARS) \
 262                 $(SEQUENTIAL_TARGETS) )
 263           endif
 264           ifneq ($(PARALLEL_TARGETS), )
 265             $(call StartGlobalTimer)
 266             $(call PrepareSmartJavac)
 267             ( cd $(TOPDIR) && \
 268                 $(BUILD_LOG_WRAPPER) $(MAKE) $(MAKE_ARGS) $(OUTPUT_SYNC_FLAG) \
 269                 -j $(JOBS) -f make/Main.gmk $(USER_MAKE_VARS) \
 270                 $(PARALLEL_TARGETS) || \
 271                 ( exitcode=$$? && $(BUILD_LOG_WRAPPER) $(PRINTF) "\nERROR: Build failed for $(TARGET_DESCRIPTION) (exit code $$exitcode) \n" && \
 272                 $(PRINTF) "Hint: If caused by a warning, try configure --disable-warnings-as-errors \n\n" && exit $$exitcode ) )
 273             $(call CleanupSmartJavac)
 274             $(call StopGlobalTimer)
 275             $(call ReportBuildTimes)
 276           endif
 277           $(BUILD_LOG_WRAPPER) $(PRINTF) "Finished building $(TARGET_DESCRIPTION)\n"
 278         endif
 279 
 280   .PHONY: print-targets print-modules reconfigure main
 281 endif
< prev index next >