aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-07-25 10:34:06 +0000
committerJohn Crispin <john@openwrt.org>2012-07-25 10:34:06 +0000
commit584bc13d38bb088181aa82d602d386b91907405a (patch)
treed0d776cea83750aae57c87a774b94839b9b4c764 /include
parent7ee4798be289f3d950a8a5688d3e252eecad6662 (diff)
downloadupstream-584bc13d38bb088181aa82d602d386b91907405a.tar.gz
upstream-584bc13d38bb088181aa82d602d386b91907405a.tar.bz2
upstream-584bc13d38bb088181aa82d602d386b91907405a.zip
use autoreconf hook instead of manual call
SVN-Revision: 32837
Diffstat (limited to 'include')
-rw-r--r--include/package-version-override.mk1
-rw-r--r--include/package.mk3
2 files changed, 3 insertions, 1 deletions
diff --git a/include/package-version-override.mk b/include/package-version-override.mk
index f69d9b1776..2c1741eef1 100644
--- a/include/package-version-override.mk
+++ b/include/package-version-override.mk
@@ -62,7 +62,6 @@ define prepare_custom_source_directory
rm -Rf $(PKG_BUILD_DIR); \
echo "Preparing Custom Source Directory link: $(CONFIG_$(PKG_NAME)_CUSTOM_SOURCE_DIR)"; \
ln -snf $(CONFIG_$(PKG_NAME)_CUSTOM_SOURCE_DIR) $(PKG_BUILD_DIR); \
- [ -x "$(PKG_BUILD_DIR)/autoreconf" ] && (cd $(PKG_BUILD_DIR); autoreconf -i;) \
else \
echo "Custom Source Directory $(CONFIG_$(PKG_NAME)_CUSTOM_SOURCE_DIR) is invalid"; \
false; \
diff --git a/include/package.mk b/include/package.mk
index abffa0c64c..64973b0510 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -76,6 +76,9 @@ ifeq ($(CONFIG_$(PKG_NAME)_USE_CUSTOM_SOURCE_DIR),y)
PKG_SOURCE_URL:=
# add hook to install a link to customer source path of dedicated package
Hooks/Prepare/Pre += prepare_custom_source_directory
+ifeq ($(filter autoreconf,$(Hooks/Configure/Pre)),)
+ Hooks/Configure/Pre += autoreconf_target
+endif
# define empty default action
define Build/Prepare/Default
@: