Changeset 26436


Ignore:
Timestamp:
2011-04-03T05:40:09+02:00 (7 years ago)
Author:
nbd
Message:

build: reduce the amount of generated make code for the initial prereq scan - makes it about 20% faster

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/subdir.mk

    r26435 r26436  
    66# 
    77 
    8 SUBTARGETS:=clean download prepare compile install update refresh prereq dist distcheck configure 
     8ifeq ($(MAKECMDGOALS),prereq) 
     9  SUBTARGETS:=prereq 
     10  PREREQ_ONLY:=1 
     11else 
     12  SUBTARGETS:=clean download prepare compile install update refresh prereq dist distcheck configure 
     13endif 
    914 
    1015subtarget-default = $(filter-out ., \ 
     
    3843                        $(if $(call debug,$(1)/$(bd),v),,@)+$(if $(BUILD_LOG),set -o pipefail;) $$(SUBMAKE) -C $(1)/$(bd) $(target) BUILD_VARIANT="$(filter-out __default,$(variant))" $(if $(BUILD_LOG),SILENT= 2>&1 | tee $(BUILD_LOG_DIR)/$(1)/$(bd)/$(target).txt) $(if $(findstring $(bd),$($(1)/builddirs-ignore-$(target))), || $(call MESSAGE,   ERROR: $(1)/$(bd) failed to build$(if $(filter-out __default,$(variant)), (build variant: $(variant))).)) 
    3944        ) 
    40       $(if $(DUMP_TARGET_DB),, 
     45      $(if $(PREREQ_ONLY)$(DUMP_TARGET_DB),, 
    4146        # legacy targets 
    4247        $(call warn_eval,$(1)/$(bd),l,T,$(1)/$(bd)-$(target): $(1)/$(bd)/$(target)) 
Note: See TracChangeset for help on using the changeset viewer.