add missing BuildPackage lines, convert install-dev: to Build/InstallDev
authorFelix Fietkau <nbd@openwrt.org>
Wed, 31 May 2006 13:00:11 +0000 (13:00 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 31 May 2006 13:00:11 +0000 (13:00 +0000)
SVN-Revision: 3857

openwrt/package/iproute2/Makefile
openwrt/package/iptables/Makefile
openwrt/package/mtd/Makefile
openwrt/package/nvram/Makefile

index 11336948f47b7575761d91ce7de0686d1c9ccae8..1fa638d39d7f2fb0c21637be323f706f98512243 100644 (file)
@@ -53,6 +53,5 @@ define Package/tc/install
        install -m0755 $(PKG_BUILD_DIR)/tc/tc $(1)/usr/sbin/
 endef
 
-# $(eval $(call BuildPackage,iproute2))
-# $(eval $(call BuildPackage,ip))
-# $(eval $(call BuildPackage,tc))
+$(eval $(call BuildPackage,ip))
+$(eval $(call BuildPackage,tc))
index ae2adcfa08301a92f92dfb479773cea52ad6a8ec..4c547be998d8d80be0beb8244fdad10b59d888eb 100644 (file)
@@ -162,6 +162,22 @@ define Build/Compile
                DESTDIR="$(PKG_INSTALL_DIR)" \
                all install install-devel
 endef
+
+
+define Build/InstallDev
+       $(MAKE) -C $(PKG_BUILD_DIR) \
+               $(TARGET_CONFIGURE_OPTS) \
+               CC=$(TARGET_CC) COPT_FLAGS="$(TARGET_CFLAGS)" \
+               KERNEL_DIR=$(LINUX_DIR) PREFIX=/usr \
+               DESTDIR="$(STAGING_DIR)" \
+               install install-devel
+endef
+
+define Build/UninstallDev
+       rm -rf $(STAGING_DIR)/usr/include/libipq.h
+       rm -rf $(STAGING_DIR)/usr/lib/libipq.a
+endef
+
                
 define Package/iptables/install
        install -d -m0755 $(1)/etc/config
@@ -223,21 +239,3 @@ $(eval $(call BuildPlugin,iptables-mod-ipsec,$(IPT_IPSEC-m)))
 $(eval $(call BuildPlugin,iptables-mod-nat,$(IPT_NAT-m)))
 $(eval $(call BuildPlugin,iptables-mod-ulog,$(IPT_ULOG-m)))
 $(eval $(call BuildPackage,ip6tables))
-
-
-$(STAGING_DIR)/usr/lib/libipq.a: $(PKG_BUILD_DIR)/.built
-       $(MAKE) -C $(PKG_BUILD_DIR) \
-               $(TARGET_CONFIGURE_OPTS) \
-               CC=$(TARGET_CC) COPT_FLAGS="$(TARGET_CFLAGS)" \
-               KERNEL_DIR=$(LINUX_DIR) PREFIX=/usr \
-               DESTDIR="$(STAGING_DIR)" \
-               install install-devel
-
-install-dev: $(STAGING_DIR)/usr/lib/libipq.a
-uninstall-dev:
-       rm -rf $(STAGING_DIR)/usr/include/libipq.h
-       rm -rf $(STAGING_DIR)/usr/lib/libipq.a
-
-compile-targets: install-dev
-clean-targets: uninstall-dev
-
index 0d684b8f492662d42d092e45e80334dacbb7d4ba..fdb43eee15d3e8d831bbe03e50704d7e4653f003 100644 (file)
@@ -26,3 +26,5 @@ define Package/mtd/install
        install -d -m0755 $(1)/sbin
        install -m0755 $(PKG_BUILD_DIR)/mtd $(1)/sbin
 endef
+
+$(eval $(call BuildPackage,mtd))
index 9cc6b9997abcd29929af99920fb7081493ca4b43..5900f6f05b10336d77f0405ba187a07f4c40a115 100644 (file)
@@ -28,9 +28,14 @@ define Package/nvram/install
        install -m0755 $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin
 endef
 
-compile-targets: install-dev
-install-dev: $(PKG_BUILD_DIR)/.built
+define Build/InstallDev
        mkdir -p $(STAGING_DIR)/usr/lib
        $(CP) $(PKG_BUILD_DIR)/*.so $(STAGING_DIR)/usr/lib
-       
+endef
+
+define Build/UninstallDev
+       rm -f $(STAGING_DIR)/usr/lib/libshared*.so \
+               $(STAGING_DIR)/usr/lib/libnvram*.so
+endef
 
+$(eval $(call BuildPackage,nvram))