more use of the INSTALL_DIR variable
authorNicolas Thill <nico@openwrt.org>
Mon, 8 Jan 2007 00:53:24 +0000 (00:53 +0000)
committerNicolas Thill <nico@openwrt.org>
Mon, 8 Jan 2007 00:53:24 +0000 (00:53 +0000)
SVN-Revision: 6023

package/busybox/Makefile
package/ifenslave/Makefile
package/iptables/Makefile
package/qos-scripts/Makefile

index 2927d70436c34ac72f821089fadbcb9ee1fc4745..1ad4074002191d7e86982f70fb74d3902f042ea7 100644 (file)
@@ -75,7 +75,7 @@ define Package/busybox/install
                IPKG_ARCH="$(ARCH)" \
                CONFIG_PREFIX="$(1)" \
                install
-       mkdir -p $(1)/etc/init.d
+       $(INSTALL_DIR) $(1)/etc/init.d
        for tmp in $(init-y); do \
                $(INSTALL_BIN) ./files/$$$$tmp $(1)/etc/init.d/$$$$tmp; \
        done
index d4d33440dfead3dd447af8bac83bb086ac843121..f20498a30bd0f28a2c5ae12b471ef9eaee1db610 100644 (file)
@@ -35,8 +35,8 @@ define Build/Compile
 endef
 
 define Package/ifenslave/install
-       mkdir -p $(1)/sbin
-       $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin
+       $(INSTALL_DIR) $(1)/sbin
+       $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin/
 endef
 
 $(eval $(call BuildPackage,ifenslave))
index 300ea7fdd0e401698a657e579d51ce09bf59e523..6e486df925c58edb1d3231a10df01549d7e3d084 100644 (file)
@@ -241,7 +241,8 @@ define BuildPlugin
   $$(eval $$(call BuildPackage,$(1)))
 endef
 
-L7_INSTALL:=mkdir -p $$(1)/etc/l7-protocols; \
+L7_INSTALL:=\
+       $(INSTALL_DIR) $$(1)/etc/l7-protocols; \
        $(CP) files/l7/*.pat $$(1)/etc/l7-protocols/
 
 $(eval $(call BuildPackage,iptables))
index bb5a9639f11c3c4a8205dd2913c2f76374eb61b5..8124bc7558a1fea337e9524ab0054f6a1832bf28 100644 (file)
@@ -37,7 +37,7 @@ define Build/Compile
 endef
 
 define Package/qos-scripts/install
-       mkdir -p $(1)
+       $(INSTALL_DIR) $(1)
        $(CP) ./files/* $(1)/
 endef