install more iptables development stuff into the staging dir
authorFelix Fietkau <nbd@openwrt.org>
Sat, 29 Apr 2006 21:43:26 +0000 (21:43 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 29 Apr 2006 21:43:26 +0000 (21:43 +0000)
SVN-Revision: 3713

openwrt/package/iptables/Makefile

index bca0610614ae149a394519b11dc4b685cd9b8de5..fc57f9c701f16131ece6d794fd7f7845f1fc84a6 100644 (file)
@@ -226,10 +226,12 @@ $(eval $(call BuildPackage,ip6tables))
 
 
 $(STAGING_DIR)/usr/lib/libipq.a: $(PKG_BUILD_DIR)/.built
-       mkdir -p $(STAGING_DIR)/usr/include
-       $(CP) $(PKG_INSTALL_DIR)/usr/include/libipq.h $(STAGING_DIR)/usr/include/
-       mkdir -p $(STAGING_DIR)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipq.a $(STAGING_DIR)/usr/lib/
+       $(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: