summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-12-08 15:55:05 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-12-08 15:55:05 +0000
commitfc25007177191cf7c086ebd9a54ac4c1db9318ef (patch)
tree399f8948e0f9aad3a9db8cdcb5112b7a130a2a27 /include
parent246864d9f238a0e8f733dad56f8233d70c0a5d82 (diff)
[include] autotools.mk: introduce PKG_REMOVE_FILES to delete certain files after applying patches and before doing any fixups
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24348 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/autotools.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/autotools.mk b/include/autotools.mk
index a1a5d5d81..b236aace4 100644
--- a/include/autotools.mk
+++ b/include/autotools.mk
@@ -17,11 +17,13 @@ endef
define autoreconf
(cd $(PKG_BUILD_DIR); \
+ $(patsubst %,rm -f %;,$(PKG_REMOVE_FILES)) \
if [ -x ./autogen.sh ]; then \
./autogen.sh || true; \
elif [ -f ./configure.ac ] || [ -f ./configure.in ]; then \
- rm -f ./GNUmakefile; \
+ [ -f ./aclocal.m4 ] && [ ! -f ./acinclude.m4 ] && mv aclocal.m4 acinclude.m4; \
$(STAGING_DIR_HOST)/bin/autoreconf -v -f -i -s \
+ -B $(STAGING_DIR)/host/share/aclocal \
$(patsubst %,-I %,$(PKG_LIBTOOL_PATHS)) $(PKG_LIBTOOL_PATHS) || true; \
fi \
);