make/InitSupport.gmk
changeset 50562 3903ab54107e
parent 50507 e5cdf2569510
child 52572 2ed42e41e712
child 56920 e0750e33f818
equal deleted inserted replaced
50561:5756e8eecb17 50562:3903ab54107e
   454 	  $(RM) $(BUILD_PROFILE_LOG).old 2> /dev/null && \
   454 	  $(RM) $(BUILD_PROFILE_LOG).old 2> /dev/null && \
   455 	  $(MV) $(BUILD_PROFILE_LOG) $(BUILD_PROFILE_LOG).old 2> /dev/null || true \
   455 	  $(MV) $(BUILD_PROFILE_LOG) $(BUILD_PROFILE_LOG).old 2> /dev/null || true \
   456 	)
   456 	)
   457   endef
   457   endef
   458 
   458 
       
   459   # Failure logs are only supported for "parallel" main targets, not the
       
   460   # (trivial) sequential make targets (such as clean and reconfigure),
       
   461   # since the failure-logs directory creation will conflict with clean.
   459   define PrepareFailureLogs
   462   define PrepareFailureLogs
   460 	$(RM) -r $(MAKESUPPORT_OUTPUTDIR)/failure-logs 2> /dev/null && \
   463 	$(RM) -r $(MAKESUPPORT_OUTPUTDIR)/failure-logs 2> /dev/null && \
   461 	$(MKDIR) -p $(MAKESUPPORT_OUTPUTDIR)/failure-logs
   464 	$(MKDIR) -p $(MAKESUPPORT_OUTPUTDIR)/failure-logs
   462 	$(RM) $(MAKESUPPORT_OUTPUTDIR)/exit-with-error 2> /dev/null
   465 	$(RM) $(MAKESUPPORT_OUTPUTDIR)/exit-with-error 2> /dev/null
   463   endef
   466   endef