140 |
140 |
141 # Hook to be called when finish executing a top-level target |
141 # Hook to be called when finish executing a top-level target |
142 define TargetExit |
142 define TargetExit |
143 $(call RecordEndTime,$(patsubst %-only,%,$@)) |
143 $(call RecordEndTime,$(patsubst %-only,%,$@)) |
144 $(BUILD_LOG_WRAPPER) $(PRINTF) "## Finished $(patsubst %-only,%,$@) (build time %s)\n\n" \ |
144 $(BUILD_LOG_WRAPPER) $(PRINTF) "## Finished $(patsubst %-only,%,$@) (build time %s)\n\n" \ |
145 "`$(CAT) $(BUILDTIMESDIR)/build_time_diff_$(patsubst %-only,%,$@) | $(CUT) -f 1 -d " "`" |
145 "`$(CAT) $(BUILDTIMESDIR)/build_time_diff_$(patsubst %-only,%,$@) | $(CUT) -f 1 -d ' '`" |
146 $(call CheckIfMakeAtEnd) |
146 $(call CheckIfMakeAtEnd) |
147 endef |
147 endef |
148 |
148 |
149 # Hook to be called as the very first thing when running a normal build |
149 # Hook to be called as the very first thing when running a normal build |
150 define AtMakeStart |
150 define AtMakeStart |