X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/06c8c0c238e9b7a600fd5bb0ed3025e9380b6c35..f0d1ad31ba2c35695f6c521895d00149f6da2ea5:/include/host-build.mk diff --git a/include/host-build.mk b/include/host-build.mk index 8eb49c8f4..6324276a7 100644 --- a/include/host-build.mk +++ b/include/host-build.mk @@ -130,17 +130,8 @@ ifndef DUMP touch $$@ $(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 - host-install: $(HOST_STAMP_INSTALLED) + host-install: $(if $(STAMP_BUILT),$(HOST_STAMP_BUILT),$(HOST_STAMP_INSTALLED)) endif ifndef STAMP_BUILT @@ -149,8 +140,20 @@ ifndef DUMP install: host-install clean: host-clean 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 - host-compile: $(HOST_STAMP_INSTALLED) + $(HOST_STAMP_BUILT): $(HOST_STAMP_CONFIGURED) + $(call Host/Compile) + $(call Host/Install) + touch $$@ endif host-prepare: $(HOST_STAMP_PREPARED) host-configure: $(HOST_STAMP_CONFIGURED)