X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/1cbc384d5661d65c9509d341c938cd89f28dc061..e70bc620f593250450eb59d9d511980921f2d06e:/include/host-build.mk diff --git a/include/host-build.mk b/include/host-build.mk index 0502d7682..ea7cd3aca 100644 --- a/include/host-build.mk +++ b/include/host-build.mk @@ -73,6 +73,15 @@ ifneq ($(strip $(PKG_SOURCE)),) endif define HostBuild + ifeq ($(DUMP),) + ifeq ($(CONFIG_AUTOREBUILD),y) + ifneq ($$(shell $(SCRIPT_DIR)/timestamp.pl -p $(PKG_BUILD_DIR) . $(PKG_FILE_DEPEND)),$(PKG_BUILD_DIR)) + $$(info Forcing package rebuild) + $(PKG_BUILD_DIR)/.prepared: package-clean + endif + endif + endif + $(PKG_BUILD_DIR)/.prepared: @-rm -rf $(PKG_BUILD_DIR) @mkdir -p $(PKG_BUILD_DIR) @@ -89,10 +98,11 @@ define HostBuild $(STAGING_DIR)/stampfiles/.host_$(PKG_NAME)-installed: $(PKG_BUILD_DIR)/.built $(call Build/Install) + mkdir -p $$(shell dirname $$@) touch $$@ ifdef Build/Install - install-targets: $(STAGING_DIR)/stampfiles/.host_$(PKG_NAME)-installed + install: $(STAGING_DIR)/stampfiles/.host_$(PKG_NAME)-installed endif package-clean: FORCE @@ -103,16 +113,9 @@ define HostBuild download: prepare: $(PKG_BUILD_DIR)/.prepared configure: $(PKG_BUILD_DIR)/.configured - - compile-targets: $(PKG_BUILD_DIR)/.built - compile: compile-targets - - install-targets: - install: install-targets - - clean-targets: + compile: $(PKG_BUILD_DIR)/.built + install: clean: FORCE - @$(MAKE) clean-targets $(call Build/Clean) rm -rf $(PKG_BUILD_DIR)