-$(INFO_ZLIB): $(IPKG_ZLIB)
- $(IPKG) install $(IPKG_ZLIB)
-
-source: $(DL_DIR)/$(PKG_SOURCE)
-prepare: $(PKG_BUILD_DIR)/.prepared
-compile: $(IPKG_ZLIB)
-install: $(INFO_ZLIB)
-
-clean:
- -$(MAKE) -C $(PKG_BUILD_DIR) \
- DESTDIR="$(STAGING_DIR)" \
- uninstall
- rm -rf $(PKG_BUILD_DIR) $(IPKG_ZLIB)
+$(STAGING_DIR)/usr/lib/libz.so: $(PKG_BUILD_DIR)/.built
+ mkdir -p $(STAGING_DIR)/usr/include
+ cp -fpR $(PKG_INSTALL_DIR)/usr/include/z{conf,lib}.h $(STAGING_DIR)/usr/include
+ mkdir -p $(STAGING_DIR)/usr/lib
+ cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libz.{a,so*} $(STAGING_DIR)/usr/lib
+ touch $(STAGING_DIR)/usr/lib/libz.so
+
+install-dev: $(STAGING_DIR)/usr/lib/libz.so
+
+uninstall-dev:
+ rm -rf $(STAGING_DIR)/usr/include/z{conf,lib}.h
+ rm -rf $(STAGING_DIR)/usr/lib/libz.{a,so*}
+
+compile: install-dev
+clean: uninstall-dev