< prev index next >

make/InitSupport.gmk

Print this page

444 	$(if $(COMPARE_BUILD_COMP_DIR), \
445 	  +(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh --diffs $(COMPARE_BUILD_COMP_OPTS) \
446 	      -2dirs $(COMPARE_BUILD_OUTPUTDIR)/$(COMPARE_BUILD_COMP_DIR) \
447 	      $(OUTPUTDIR)/$(COMPARE_BUILD_COMP_DIR) $(COMPARE_BUILD_IGNORE_RESULT)), \
448 	  +(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh --diffs $(COMPARE_BUILD_COMP_OPTS) \
449 	      -o $(OUTPUTDIR) $(COMPARE_BUILD_IGNORE_RESULT)) \
450 	)
451   endef
452 
453   define PrintFailureReports
454 	$(if $(filter none, $(LOG_REPORT)), , \
455 	  $(RM) $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log ; \
456 	  $(if $(wildcard $(MAKESUPPORT_OUTPUTDIR)/failure-logs/*.log), \
457 	    ( \
458 	      $(PRINTF) "\n=== Output from failing command(s) repeated here ===\n" ;  \
459 	      $(foreach logfile, $(sort $(wildcard $(MAKESUPPORT_OUTPUTDIR)/failure-logs/*.log)), \
460 	          $(PRINTF) "* For target $(notdir $(basename $(logfile))):\n" ; \
461 	          $(if $(filter all, $(LOG_REPORT)), \
462 	            $(GREP) -v -e "^Note: including file:" <  $(logfile) || true ; \
463 	          , \
464 	            ($(GREP) -v -e "^Note: including file:" <  $(logfile) || true) | $(HEAD) -n 15 ; \
465 	            if test `$(WC) -l < $(logfile)` -gt 15; then \
466 	              $(ECHO) "   ... (rest of output omitted)" ; \
467 	            fi ; \
468 	          ) \
469 	      ) \
470 	      $(PRINTF) "\n* All command lines available in $(MAKESUPPORT_OUTPUTDIR)/failure-logs.\n" ; \
471 	      $(PRINTF) "=== End of repeated output ===\n" ; \
472 	    )  >> $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log  \
473 	  ) \
474 	)
475   endef
476 
477   define PrintBuildLogFailures
478 	$(if $(filter none, $(LOG_REPORT)), , \
479 	  if $(GREP) -q "recipe for target .* failed" $(BUILD_LOG) 2> /dev/null; then  \
480 	    $(PRINTF) "\n=== Make failed targets repeated here ===\n" ; \
481 	    $(GREP) "recipe for target .* failed" $(BUILD_LOG) ; \
482 	    $(PRINTF) "=== End of repeated output ===\n" ; \
483 	    $(PRINTF) "\nHELP: Try searching the build log for the name of the first failed target.\n" ; \
484 	  else \

444 	$(if $(COMPARE_BUILD_COMP_DIR), \
445 	  +(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh --diffs $(COMPARE_BUILD_COMP_OPTS) \
446 	      -2dirs $(COMPARE_BUILD_OUTPUTDIR)/$(COMPARE_BUILD_COMP_DIR) \
447 	      $(OUTPUTDIR)/$(COMPARE_BUILD_COMP_DIR) $(COMPARE_BUILD_IGNORE_RESULT)), \
448 	  +(cd $(COMPARE_BUILD_OUTPUTDIR) && ./compare.sh --diffs $(COMPARE_BUILD_COMP_OPTS) \
449 	      -o $(OUTPUTDIR) $(COMPARE_BUILD_IGNORE_RESULT)) \
450 	)
451   endef
452 
453   define PrintFailureReports
454 	$(if $(filter none, $(LOG_REPORT)), , \
455 	  $(RM) $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log ; \
456 	  $(if $(wildcard $(MAKESUPPORT_OUTPUTDIR)/failure-logs/*.log), \
457 	    ( \
458 	      $(PRINTF) "\n=== Output from failing command(s) repeated here ===\n" ;  \
459 	      $(foreach logfile, $(sort $(wildcard $(MAKESUPPORT_OUTPUTDIR)/failure-logs/*.log)), \
460 	          $(PRINTF) "* For target $(notdir $(basename $(logfile))):\n" ; \
461 	          $(if $(filter all, $(LOG_REPORT)), \
462 	            $(GREP) -v -e "^Note: including file:" <  $(logfile) || true ; \
463 	          , \
464 	            ($(GREP) -v -e "^Note: including file:" <  $(logfile) || true); \
465 	            if test `$(WC) -l < $(logfile)` -gt 15; then \
466 	              $(ECHO) "   ... (rest of output omitted)" ; \
467 	            fi ; \
468 	          ) \
469 	      ) \
470 	      $(PRINTF) "\n* All command lines available in $(MAKESUPPORT_OUTPUTDIR)/failure-logs.\n" ; \
471 	      $(PRINTF) "=== End of repeated output ===\n" ; \
472 	    )  >> $(MAKESUPPORT_OUTPUTDIR)/failure-summary.log  \
473 	  ) \
474 	)
475   endef
476 
477   define PrintBuildLogFailures
478 	$(if $(filter none, $(LOG_REPORT)), , \
479 	  if $(GREP) -q "recipe for target .* failed" $(BUILD_LOG) 2> /dev/null; then  \
480 	    $(PRINTF) "\n=== Make failed targets repeated here ===\n" ; \
481 	    $(GREP) "recipe for target .* failed" $(BUILD_LOG) ; \
482 	    $(PRINTF) "=== End of repeated output ===\n" ; \
483 	    $(PRINTF) "\nHELP: Try searching the build log for the name of the first failed target.\n" ; \
484 	  else \
< prev index next >