-$(PKG_IPK): $(STAGING_DIR)/usr/lib/libpcre.so
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) libpcre.control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- mkdir -p $(PKG_IPK_DIR)/usr/lib
- cp -fp $(STAGING_DIR)/usr/lib/libpcre*.so.* $(PKG_IPK_DIR)/usr/lib/
- $(STRIP) $(PKG_IPK_DIR)/usr/lib/*.so*
- mkdir -p $(PACKAGE_DIR)
- $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
+$(IPKG_LIBPCRE):
+ mkdir -p $(IDIR_LIBPCRE)/usr/lib
+ cp -fpR $(PKG_BUILD_DIR)/.libs/libpcre*.so.* $(IDIR_LIBPCRE)/usr/lib/
+ $(RSTRIP) $(IDIR_LIBPCRE)
+ $(IPKG_BUILD) $(IDIR_LIBPCRE) $(PACKAGE_DIR)