mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
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. SVN-Revision: 19021
This commit is contained in:
parent
41a1a80059
commit
144fd07cd8
@ -130,17 +130,8 @@ ifndef DUMP
|
|||||||
touch $$@
|
touch $$@
|
||||||
|
|
||||||
$(call Host/Exports,$(HOST_STAMP_BUILT))
|
$(call Host/Exports,$(HOST_STAMP_BUILT))
|
||||||
$(HOST_STAMP_BUILT): $(HOST_STAMP_CONFIGURED)
|
|
||||||
$(call Host/Compile)
|
|
||||||
touch $$@
|
|
||||||
|
|
||||||
$(HOST_STAMP_INSTALLED): $(HOST_STAMP_BUILT)
|
|
||||||
$(call Host/Install)
|
|
||||||
mkdir -p $$(shell dirname $$@)
|
|
||||||
touch $$@
|
|
||||||
|
|
||||||
ifdef Host/Install
|
ifdef Host/Install
|
||||||
host-install: $(HOST_STAMP_INSTALLED)
|
host-install: $(if $(STAMP_BUILT),$(HOST_STAMP_BUILT),$(HOST_STAMP_INSTALLED))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef STAMP_BUILT
|
ifndef STAMP_BUILT
|
||||||
@ -149,8 +140,20 @@ ifndef DUMP
|
|||||||
install: host-install
|
install: host-install
|
||||||
clean: host-clean
|
clean: host-clean
|
||||||
update: host-update
|
update: host-update
|
||||||
|
|
||||||
|
$(HOST_STAMP_BUILT): $(HOST_STAMP_CONFIGURED)
|
||||||
|
$(call Host/Compile)
|
||||||
|
touch $$@
|
||||||
|
|
||||||
|
$(HOST_STAMP_INSTALLED): $(HOST_STAMP_BUILT)
|
||||||
|
$(call Host/Install)
|
||||||
|
mkdir -p $$(shell dirname $$@)
|
||||||
|
touch $$@
|
||||||
else
|
else
|
||||||
host-compile: $(HOST_STAMP_INSTALLED)
|
$(HOST_STAMP_BUILT): $(HOST_STAMP_CONFIGURED)
|
||||||
|
$(call Host/Compile)
|
||||||
|
$(call Host/Install)
|
||||||
|
touch $$@
|
||||||
endif
|
endif
|
||||||
host-prepare: $(HOST_STAMP_PREPARED)
|
host-prepare: $(HOST_STAMP_PREPARED)
|
||||||
host-configure: $(HOST_STAMP_CONFIGURED)
|
host-configure: $(HOST_STAMP_CONFIGURED)
|
||||||
|
Loading…
Reference in New Issue
Block a user