155 $(call StartGlobalTimer) |
155 $(call StartGlobalTimer) |
156 endef |
156 endef |
157 |
157 |
158 # Hook to be called as the very last thing for targets that are "top level" targets |
158 # Hook to be called as the very last thing for targets that are "top level" targets |
159 define AtMakeEnd |
159 define AtMakeEnd |
160 $(if $(SJAVAC_SERVER_DIR),@$(RM) -rf $(SJAVAC_SERVER_DIR)/*.port) |
160 [ -f $(SJAVAC_SERVER_DIR)/server.port ] && echo Stopping sjavac server && $(TOUCH) $(SJAVAC_SERVER_DIR)/server.port.stop; true |
161 $(call StopGlobalTimer) |
161 $(call StopGlobalTimer) |
162 $(call ReportBuildTimes) |
162 $(call ReportBuildTimes) |
163 @$(PRINTF) "Finished building $(PRODUCT_NAME) for target '$(call GetRealTarget)'\n" |
163 @$(PRINTF) "Finished building $(PRODUCT_NAME) for target '$(call GetRealTarget)'\n" |
164 $(call CheckEnvironment) |
164 $(call CheckEnvironment) |
165 endef |
165 endef |
172 endef |
172 endef |
173 |
173 |
174 define ParseLogLevel |
174 define ParseLogLevel |
175 ifeq ($$(origin VERBOSE),undefined) |
175 ifeq ($$(origin VERBOSE),undefined) |
176 # Setup logging according to LOG (but only if VERBOSE is not given) |
176 # Setup logging according to LOG (but only if VERBOSE is not given) |
177 |
177 |
178 # If the "nofile" argument is given, act on it and strip it away |
178 # If the "nofile" argument is given, act on it and strip it away |
179 ifneq ($$(findstring nofile,$$(LOG)),) |
179 ifneq ($$(findstring nofile,$$(LOG)),) |
180 # Reset the build log wrapper, regardless of other values |
180 # Reset the build log wrapper, regardless of other values |
181 override BUILD_LOG_WRAPPER= |
181 override BUILD_LOG_WRAPPER= |
182 # COMMA is defined in spec.gmk, but that is not included yet |
182 # COMMA is defined in spec.gmk, but that is not included yet |
183 COMMA=, |
183 COMMA=, |