make/HotspotWrapper.gmk
changeset 35238 b6d8d17606be
parent 35033 36613b800836
child 36506 17612cee3530
equal deleted inserted replaced
35237:9bd7d91ca664 35238:b6d8d17606be
    33 # affected, however. This is required for correct dependency management.
    33 # affected, however. This is required for correct dependency management.
    34 .NOTPARALLEL:
    34 .NOTPARALLEL:
    35 
    35 
    36 default: all
    36 default: all
    37 
    37 
    38 # Get all files except .hg in the hotspot directory.
    38 # Get all files in src, make or agent subdirs in hotspot directory and
    39 HOTSPOT_FILES := $(shell $(FIND) -L $(HOTSPOT_TOPDIR) -name ".hg" -prune -o -print)
    39 # filter out .hg. This skips the test directory.
       
    40 HOTSPOT_FILES := $(shell $(FIND) -L \
       
    41     $(HOTSPOT_TOPDIR)/src $(HOTSPOT_TOPDIR)/make \
       
    42     -name ".hg" -prune -o -print)
    40 
    43 
    41 # The old build creates hotspot output dir before calling hotspot and
    44 # The old build creates hotspot output dir before calling hotspot and
    42 # not doing it breaks builds on msys.
    45 # not doing it breaks builds on msys.
    43 $(HOTSPOT_OUTPUTDIR)/_hotspot.timestamp: $(HOTSPOT_FILES)
    46 $(HOTSPOT_OUTPUTDIR)/_hotspot.timestamp: $(HOTSPOT_FILES)
    44 	@$(MKDIR) -p $(HOTSPOT_OUTPUTDIR)
    47 	@$(MKDIR) -p $(HOTSPOT_OUTPUTDIR)
    45 	@($(CD) $(HOTSPOT_TOPDIR)/make && $(MAKE) $(HOTSPOT_MAKE_ARGS) LOG_LEVEL=$(LOG_LEVEL) SPEC=$(HOTSPOT_SPEC) BASE_SPEC=$(BASE_SPEC))
    48 	@($(CD) $(HOTSPOT_TOPDIR)/make && $(MAKE) $(HOTSPOT_MAKE_ARGS) \
       
    49 	    LOG_LEVEL=$(LOG_LEVEL) SPEC=$(HOTSPOT_SPEC) BASE_SPEC=$(BASE_SPEC))
    46 	$(TOUCH) $@
    50 	$(TOUCH) $@
    47 
    51 
    48 hotspot: $(HOTSPOT_OUTPUTDIR)/_hotspot.timestamp
    52 hotspot: $(HOTSPOT_OUTPUTDIR)/_hotspot.timestamp
    49 
    53 
    50 all: hotspot
    54 all: hotspot