163 +(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh --diffs $(COMPARE_BUILD_COMP_OPTS) \
164 -2dirs $(COMPARE_BUILD_OUTPUTDIR)/$(COMPARE_BUILD_COMP_DIR) \
165 $(OUTPUTDIR)/$(COMPARE_BUILD_COMP_DIR) $(COMPARE_BUILD_IGNORE_RESULT)), \
166 +(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh --diffs $(COMPARE_BUILD_COMP_OPTS) \
167 -o $(OUTPUTDIR) $(COMPARE_BUILD_IGNORE_RESULT)) \
168 )
169 endef
170
171 define PrintFailureReports
172 $(if $(filter none, $(LOG_REPORT)), , \
173 $(RM) $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log ; \
174 $(if $(wildcard $(MAKESUPPORT_OUTPUTDIR)/failure-logs/*.log), \
175 ( \
176 $(ECHO) "" ; \
177 $(ECHO) "=== Output from failing command(s) repeated here ===" ; \
178 $(foreach logfile, $(sort $(wildcard $(MAKESUPPORT_OUTPUTDIR)/failure-logs/*.log)), \
179 $(ECHO) "* For target $(notdir $(basename $(logfile))):" ; \
180 $(if $(filter all, $(LOG_REPORT)), \
181 $(GREP) -v -e "^Note: including file:" < $(logfile) || true ; \
182 , \
183 ($(GREP) -v -e "^Note: including file:" < $(logfile) || true) | $(HEAD) -n 15 ; \
184 if test `$(WC) -l < $(logfile)` -gt 15; then \
185 $(ECHO) " ... (rest of output omitted)" ; \
186 fi ; \
187 ) \
188 ) \
189 $(ECHO) "" ; \
190 $(ECHO) "* All command lines available in $(MAKESUPPORT_OUTPUTDIR)/failure-logs." ; \
191 $(ECHO) "=== End of repeated output ===" ; \
192 ) >> $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log \
193 ) \
194 )
195 endef
196
197 define PrintBuildLogFailures
198 $(if $(filter none, $(LOG_REPORT)), , \
199 if $(GREP) -q "recipe for target .* failed" $(BUILD_LOG) 2> /dev/null; then \
200 $(ECHO) "" ; \
201 $(ECHO) "=== Make failed targets repeated here ===" ; \
202 $(GREP) "recipe for target .* failed" $(BUILD_LOG) ; \
203 $(ECHO) "=== End of repeated output ===" ; \
|
163 +(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh --diffs $(COMPARE_BUILD_COMP_OPTS) \
164 -2dirs $(COMPARE_BUILD_OUTPUTDIR)/$(COMPARE_BUILD_COMP_DIR) \
165 $(OUTPUTDIR)/$(COMPARE_BUILD_COMP_DIR) $(COMPARE_BUILD_IGNORE_RESULT)), \
166 +(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh --diffs $(COMPARE_BUILD_COMP_OPTS) \
167 -o $(OUTPUTDIR) $(COMPARE_BUILD_IGNORE_RESULT)) \
168 )
169 endef
170
171 define PrintFailureReports
172 $(if $(filter none, $(LOG_REPORT)), , \
173 $(RM) $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log ; \
174 $(if $(wildcard $(MAKESUPPORT_OUTPUTDIR)/failure-logs/*.log), \
175 ( \
176 $(ECHO) "" ; \
177 $(ECHO) "=== Output from failing command(s) repeated here ===" ; \
178 $(foreach logfile, $(sort $(wildcard $(MAKESUPPORT_OUTPUTDIR)/failure-logs/*.log)), \
179 $(ECHO) "* For target $(notdir $(basename $(logfile))):" ; \
180 $(if $(filter all, $(LOG_REPORT)), \
181 $(GREP) -v -e "^Note: including file:" < $(logfile) || true ; \
182 , \
183 ($(GREP) -v -e "^Note: including file:" < $(logfile) || true); \
184 if test `$(WC) -l < $(logfile)` -gt 15; then \
185 $(ECHO) " ... (rest of output omitted)" ; \
186 fi ; \
187 ) \
188 ) \
189 $(ECHO) "" ; \
190 $(ECHO) "* All command lines available in $(MAKESUPPORT_OUTPUTDIR)/failure-logs." ; \
191 $(ECHO) "=== End of repeated output ===" ; \
192 ) >> $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log \
193 ) \
194 )
195 endef
196
197 define PrintBuildLogFailures
198 $(if $(filter none, $(LOG_REPORT)), , \
199 if $(GREP) -q "recipe for target .* failed" $(BUILD_LOG) 2> /dev/null; then \
200 $(ECHO) "" ; \
201 $(ECHO) "=== Make failed targets repeated here ===" ; \
202 $(GREP) "recipe for target .* failed" $(BUILD_LOG) ; \
203 $(ECHO) "=== End of repeated output ===" ; \
|