Changeset 19021


Ignore:
Timestamp:
2010-01-03T19:00:28+01:00 (8 years ago)
Author:
lars
Message:

Prevent unnecessary host package rebuilds.

Sometimes make install touches a file inside the build directory, so it is
betterr to create the build stamp after calling make install otherwise the
package is going to be rebuild even though nothing really changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/host-build.mk

    r18232 r19021  
    131131 
    132132  $(call Host/Exports,$(HOST_STAMP_BUILT)) 
    133   $(HOST_STAMP_BUILT): $(HOST_STAMP_CONFIGURED) 
    134         $(call Host/Compile) 
    135         touch $$@ 
    136  
    137   $(HOST_STAMP_INSTALLED): $(HOST_STAMP_BUILT) 
    138         $(call Host/Install) 
    139         mkdir -p $$(shell dirname $$@) 
    140         touch $$@ 
    141  
    142133  ifdef Host/Install 
    143     host-install: $(HOST_STAMP_INSTALLED) 
     134    host-install: $(if $(STAMP_BUILT),$(HOST_STAMP_BUILT),$(HOST_STAMP_INSTALLED)) 
    144135  endif 
    145136 
     
    150141    clean: host-clean 
    151142    update: host-update 
     143 
     144    $(HOST_STAMP_BUILT): $(HOST_STAMP_CONFIGURED) 
     145                $(call Host/Compile) 
     146                touch $$@ 
     147 
     148    $(HOST_STAMP_INSTALLED): $(HOST_STAMP_BUILT) 
     149                $(call Host/Install) 
     150                mkdir -p $$(shell dirname $$@) 
     151                touch $$@ 
    152152  else 
    153     host-compile: $(HOST_STAMP_INSTALLED) 
     153    $(HOST_STAMP_BUILT): $(HOST_STAMP_CONFIGURED) 
     154                $(call Host/Compile) 
     155                $(call Host/Install) 
     156                touch $$@ 
    154157  endif 
    155158  host-prepare: $(HOST_STAMP_PREPARED) 
Note: See TracChangeset for help on using the changeset viewer.