make/Init.gmk
changeset 46035 38f385381e54
parent 45822 f8fca310fb7b
child 47217 72e3ae9a25eb
equal deleted inserted replaced
46016:cf6820c6f184 46035:38f385381e54
   115     $(eval $(call CheckInvalidMakeFlags))
   115     $(eval $(call CheckInvalidMakeFlags))
   116 
   116 
   117     # Check that CONF_CHECK is valid.
   117     # Check that CONF_CHECK is valid.
   118     $(eval $(call ParseConfCheckOption))
   118     $(eval $(call ParseConfCheckOption))
   119 
   119 
   120     # Check that the LOG given is valid, and set LOG_LEVEL, LOG_NOFILE and MAKE_LOG_FLAGS.
   120     # Check that the LOG given is valid, and set LOG_LEVEL, LOG_NOFILE, MAKE_LOG_VARS and MAKE_LOG_FLAGS.
   121     $(eval $(call ParseLogLevel))
   121     $(eval $(call ParseLogLevel))
   122 
   122 
   123     # After this SPECS contain 1..N spec files (otherwise ParseConfAndSpec fails).
   123     # After this SPECS contain 1..N spec files (otherwise ParseConfAndSpec fails).
   124     $(eval $(call ParseConfAndSpec))
   124     $(eval $(call ParseConfAndSpec))
   125 
   125 
   169 	      $(COMMAND_LINE_VARIABLES) $(MAKECMDGOALS))')
   169 	      $(COMMAND_LINE_VARIABLES) $(MAKECMDGOALS))')
   170         endif
   170         endif
   171 
   171 
   172     MAKE_INIT_WITH_SPEC_ARGUMENTS := ACTUAL_TOPDIR=$(topdir) \
   172     MAKE_INIT_WITH_SPEC_ARGUMENTS := ACTUAL_TOPDIR=$(topdir) \
   173         USER_MAKE_VARS="$(USER_MAKE_VARS)" MAKE_LOG_FLAGS=$(MAKE_LOG_FLAGS) \
   173         USER_MAKE_VARS="$(USER_MAKE_VARS)" MAKE_LOG_FLAGS=$(MAKE_LOG_FLAGS) \
   174         LOG_LEVEL=$(LOG_LEVEL) LOG_NOFILE=$(LOG_NOFILE) LOG_CMDLINES=$(LOG_CMDLINES) \
   174         $(MAKE_LOG_VARS) \
   175         INIT_TARGETS="$(INIT_TARGETS)" \
   175         INIT_TARGETS="$(INIT_TARGETS)" \
   176         SEQUENTIAL_TARGETS="$(SEQUENTIAL_TARGETS)" \
   176         SEQUENTIAL_TARGETS="$(SEQUENTIAL_TARGETS)" \
   177         PARALLEL_TARGETS="$(PARALLEL_TARGETS)"
   177         PARALLEL_TARGETS="$(PARALLEL_TARGETS)"
   178 
   178 
   179     # Now the init and main targets will be called, once for each SPEC. The
   179     # Now the init and main targets will be called, once for each SPEC. The
   317           endif
   317           endif
   318 	  if test -f $(MAKESUPPORT_OUTPUTDIR)/exit-with-error ; then \
   318 	  if test -f $(MAKESUPPORT_OUTPUTDIR)/exit-with-error ; then \
   319 	    exit 1 ; \
   319 	    exit 1 ; \
   320 	  fi
   320 	  fi
   321 	  $(PRINTF) "Finished building $(TARGET_DESCRIPTION)\n" $(BUILD_LOG_PIPE)
   321 	  $(PRINTF) "Finished building $(TARGET_DESCRIPTION)\n" $(BUILD_LOG_PIPE)
       
   322 	  $(call ReportProfileTimes)
   322         endif
   323         endif
   323 
   324 
   324     on-failure:
   325     on-failure:
   325 	$(call CleanupSmartJavac)
   326 	$(call CleanupSmartJavac)
   326 	$(call StopGlobalTimer)
   327 	$(call StopGlobalTimer)
   327 	$(call ReportBuildTimes)
   328 	$(call ReportBuildTimes)
   328 	$(call PrintFailureReports)
   329 	$(call PrintFailureReports)
   329 	$(call PrintBuildLogFailures)
   330 	$(call PrintBuildLogFailures)
       
   331 	$(call ReportProfileTimes)
   330 	$(PRINTF) "Hint: See common/doc/building.html#troubleshooting for assistance.\n\n"
   332 	$(PRINTF) "Hint: See common/doc/building.html#troubleshooting for assistance.\n\n"
   331         ifneq ($(COMPARE_BUILD), )
   333         ifneq ($(COMPARE_BUILD), )
   332 	  $(call CleanupCompareBuild)
   334 	  $(call CleanupCompareBuild)
   333         endif
   335         endif
   334 
   336