diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-30 11:12:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-30 11:12:13 +0000 |
commit | 06088681bdd29d83839d3ae88b527a16bcc268ec (patch) | |
tree | e009fca9dc0eac2a74fece3a6724b79f99c71cd2 /include | |
parent | 3587da79654173dcb4ed64b261554ffe3a5b1b9e (diff) | |
download | upstream-06088681bdd29d83839d3ae88b527a16bcc268ec.tar.gz upstream-06088681bdd29d83839d3ae88b527a16bcc268ec.tar.bz2 upstream-06088681bdd29d83839d3ae88b527a16bcc268ec.zip |
build system: add support for download-time make hooks
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28322 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r-- | include/package.mk | 5 |
1 files changed, 5 insertions, 0 deletions
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) |