use an if block on the whole configure command
authorFelix Fietkau <nbd@openwrt.org>
Wed, 30 Aug 2006 10:30:14 +0000 (10:30 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 30 Aug 2006 10:30:14 +0000 (10:30 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4717 3c298f89-4303-0410-b956-a3cf2f4a3e73

include/package.mk

index 8d90509..9a947f3 100644 (file)
@@ -263,7 +263,7 @@ endef
 
 define Build/Configure/Default
        @(cd $(PKG_BUILD_DIR)/$(3); \
-       [ \! -x configure ] || \
+       if [ -x configure ]; then \
                $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS)" \
                CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
@@ -287,6 +287,7 @@ define Build/Configure/Default
                --infodir=/usr/info \
                $(DISABLE_NLS) \
                $(1); \
+       fi; \
        )
 endef