From: Felix Fietkau Date: Fri, 30 Sep 2011 11:12:13 +0000 (+0000) Subject: build system: add support for download-time make hooks X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1b8dd6ed1cb9285c227bf28fed95478ad4ae77cb;p=librecmc%2Flibrecmc.git build system: add support for download-time make hooks SVN-Revision: 28322 --- diff --git a/include/package.mk b/include/package.mk index 1c2c179cda..cfb39dac83 100644 --- a/include/package.mk +++ b/include/package.mk @@ -100,6 +100,11 @@ define Build/DefaultTargets $(if $(strip $(PKG_SOURCE_URL)),$(call Download,default)) $(call Build/Autoclean) + download: + $(foreach hook,$(Hooks/Download), + $(call $(hook))$(sep) + ) + $(STAMP_PREPARED) : export PATH=$$(TARGET_PATH_PKG) $(STAMP_PREPARED): @-rm -rf $(PKG_BUILD_DIR)