< prev index next >

make/InitSupport.gmk

Print this page

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

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