Move out some generic code to prevent autotools from re-creating files
authorFlorian Fainelli <florian@openwrt.org>
Thu, 2 Nov 2006 22:44:38 +0000 (22:44 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 2 Nov 2006 22:44:38 +0000 (22:44 +0000)
SVN-Revision: 5384

include/package.mk

index 5636b0b6a1d8c226a1977359ac784b7b35257029..8a10569d6c4ec6780a0a0f3a77631ae996587286 100644 (file)
@@ -290,6 +290,12 @@ define Build/Prepare
 endef
 
 define Build/Configure/Default
+       (cd $(PKG_BUILD_DIR) ; \
+               [ -e configure.in ] && touch configure.in ; \
+               [ -e aclocal.m4 ] && touch aclocal.m4 ; \
+               [ -e Makefile.in ] && touch Makefile.in ; \
+               [ -e configure ] && touch configure ; \
+       );
        (cd $(PKG_BUILD_DIR)/$(strip $(3)); \
        if [ -x configure ]; then \
                $(TARGET_CONFIGURE_OPTS) \