1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 03:50:37 +02:00

use InstallDev/UninstallDev.

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3833 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2006-05-29 01:29:46 +00:00
parent 909152b7e8
commit d30a5f1bf1

View File

@ -53,18 +53,22 @@ define Package/zlib/install
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.so.* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.so.* $(1)/usr/lib/
endef endef
$(STAGING_DIR)/usr/lib/libz.so: $(PKG_BUILD_DIR)/.built define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include mkdir -p $(STAGING_DIR)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(STAGING_DIR)/usr/include $(CP) $(PKG_INSTALL_DIR)/usr/include/zconf.h \
$(PKG_INSTALL_DIR)/usr/include/zlib.h \
$(STAGING_DIR)/usr/include/
mkdir -p $(STAGING_DIR)/usr/lib mkdir -p $(STAGING_DIR)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(STAGING_DIR)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.a \
touch $(STAGING_DIR)/usr/lib/libz.so $(PKG_INSTALL_DIR)/usr/lib/libz.so* \
$(STAGING_DIR)/usr/lib/
endef
install-dev: $(STAGING_DIR)/usr/lib/libz.so define Build/UninstallDev
rm -rf $(STAGING_DIR)/usr/include/zconf.h \
uninstall-dev: $(STAGING_DIR)/usr/include/zlib.h \
rm -rf $(STAGING_DIR)/usr/include/zconf.h $(STAGING_DIR)/usr/lib/libz.a \
rm -rf $(STAGING_DIR)/usr/include/zlib.h $(STAGING_DIR)/usr/lib/libz.so*
rm -rf $(STAGING_DIR)/usr/lib/libz.* endef
$(eval $(call BuildPackage,zlib)) $(eval $(call BuildPackage,zlib))