summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-07-24 23:07:30 +0000
committerJohn Crispin <john@openwrt.org>2012-07-24 23:07:30 +0000
commit8029fefe5c42e8e71ee9944d64b322afbdeaf8a6 (patch)
tree91d1ed12e5e8a7614a63822a2b3a713c59e66677
parent7639c9b580ed5dfda7022797c56ddb4b6a8392a7 (diff)
downloadmtk-20170518-8029fefe5c42e8e71ee9944d64b322afbdeaf8a6.zip
mtk-20170518-8029fefe5c42e8e71ee9944d64b322afbdeaf8a6.tar.gz
mtk-20170518-8029fefe5c42e8e71ee9944d64b322afbdeaf8a6.tar.bz2
package-version-override always calls autoreconf
make it conditional on the existance of autoreconf Signed-off-by: Ryan Nowakowski <tubaman@fattuba.com> SVN-Revision: 32831
-rw-r--r--include/package-version-override.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/package-version-override.mk b/include/package-version-override.mk
index eaaa352..f69d9b1 100644
--- a/include/package-version-override.mk
+++ b/include/package-version-override.mk
@@ -62,7 +62,7 @@ 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); \
- ( cd $(PKG_BUILD_DIR); autoreconf -i; ) \
+ [ -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; \