-$(STAGING_DIR)/usr/lib/libelf.so: $(PKG_BUILD_DIR)/.built
- $(MAKE) -C $(PKG_BUILD_DIR) -j1 \
- instroot="$(STAGING_DIR)" \
- install
-
-$(IPKG_LIBELF): $(STAGING_DIR)/usr/lib/libelf.so
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_LIBELF) ./ipkg/$(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- mkdir -p $(IDIR_LIBELF)/usr/lib
- cp -fpR $(PKG_BUILD_DIR)/lib/libelf.so.* $(IDIR_LIBELF)/usr/lib/
- $(STRIP) $(IDIR_LIBELF)/usr/lib/lib*.so*
- mkdir -p $(PACKAGE_DIR)
+$(IPKG_LIBELF):
+ install -d -m0755 $(IDIR_LIBELF)/usr/lib
+ cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libelf.so.* $(IDIR_LIBELF)/usr/lib/
+ $(RSTRIP) $(IDIR_LIBELF)