Changeset 15362


Ignore:
Timestamp:
2009-04-24T03:04:50+02:00 (9 years ago)
Author:
nbd
Message:

add BUILD_LOG option to let the build system log all subdir make command output to individual files (useful for debugging parallel builds)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/subdir.mk

    r15112 r15362  
    3535      ) 
    3636      $(call warn_eval,$(1)/$(bd),t,T,$(1)/$(bd)/$(target): $(if $(QUILT),,$($(1)/$(bd)/$(target)) $(call $(1)//$(target),$(1)/$(bd)))) 
    37                 +$$(SUBMAKE) -C $(1)/$(bd) $(target) $(if $(findstring $(bd),$($(1)/builddirs-ignore-$(target))), || $(call MESSAGE,   ERROR: $(1)/$(bd) failed to build.)) 
     37                $(if $(BUILD_LOG),@mkdir -p $(TOPDIR)/logs/$(1)/$(bd)) 
     38                +$$(SUBMAKE) -C $(1)/$(bd) $(target) SILENT= 2>&1 | tee $(TOPDIR)/logs/$(1)/$(bd)/$(target).txt $(if $(findstring $(bd),$($(1)/builddirs-ignore-$(target))), || $(call MESSAGE,   ERROR: $(1)/$(bd) failed to build.)) 
    3839        $$(if $(call debug,$(1)/$(bd),v),,.SILENT: $(1)/$(bd)/$(target)) 
    3940 
Note: See TracChangeset for help on using the changeset viewer.