fix busybox build
[openwrt.git] / package / rules.mk
index 26b4196..5d604c5 100644 (file)
@@ -28,11 +28,11 @@ define Build/DefaultTargets
   $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
        $(call Build/Compile)
        touch $$@
-    
+
   $(PKG_BUILD_DIR)/.dev-installed: $(PKG_BUILD_DIR)/.built
        $(call Build/InstallDev)
        touch $$@
-    
+
   package-clean: FORCE
        $(call Build/Clean)
        $(call Build/UninstallDev)
@@ -134,8 +134,7 @@ define BuildPackage
        echo "Version: $(VERSION)" >> $$(IDIR_$(1))/CONTROL/control
        ( \
                DEPENDS=; \
-               for depend in $$(IDEPEND_$(1)); do \
-                       [ "$$$${depend%%%%%%%%[A-Za-z]*}" = "@" ] && continue; \
+               for depend in $$(filter-out @%,$$(IDEPEND_$(1))); do \
                        DEPENDS=$$$${DEPENDS:+$$$$DEPENDS, }$$$${depend##+}; \
                done; \
                echo "Depends: $$$$DEPENDS" >> $$(IDIR_$(1))/CONTROL/control; \
@@ -264,7 +263,11 @@ else
   prepare: $(PKG_BUILD_DIR)/.prepared
   configure: $(PKG_BUILD_DIR)/.configured
 
+ifdef Build/InstallDev
   compile-targets: $(PKG_BUILD_DIR)/.dev-installed
+else
+  compile-targets:
+endif
   compile: compile-targets
 
   install-targets:
This page took 0.019567 seconds and 4 git commands to generate.