aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2006-05-29 01:29:46 +0000
committerNicolas Thill <nico@openwrt.org>2006-05-29 01:29:46 +0000
commit7066a5cc9ea0a2b21d23ce0cc3e42445797c7a30 (patch)
treef164a8a72f63c6dd5e1762991ffc4345294525fe /package
parent70f5bb760d5fe9af44309ebe994bfb33385562e2 (diff)
downloadupstream-7066a5cc9ea0a2b21d23ce0cc3e42445797c7a30.tar.gz
upstream-7066a5cc9ea0a2b21d23ce0cc3e42445797c7a30.tar.bz2
upstream-7066a5cc9ea0a2b21d23ce0cc3e42445797c7a30.zip
use InstallDev/UninstallDev.
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3833 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/zlib/Makefile24
1 files changed, 14 insertions, 10 deletions
diff --git a/package/zlib/Makefile b/package/zlib/Makefile
index 56c0381f56..da9e6f4614 100644
--- a/package/zlib/Makefile
+++ b/package/zlib/Makefile
@@ -53,18 +53,22 @@ define Package/zlib/install
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.so.* $(1)/usr/lib/
endef
-$(STAGING_DIR)/usr/lib/libz.so: $(PKG_BUILD_DIR)/.built
+define Build/InstallDev
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
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(STAGING_DIR)/usr/lib
- touch $(STAGING_DIR)/usr/lib/libz.so
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libz.a \
+ $(PKG_INSTALL_DIR)/usr/lib/libz.so* \
+ $(STAGING_DIR)/usr/lib/
+endef
-install-dev: $(STAGING_DIR)/usr/lib/libz.so
-
-uninstall-dev:
- rm -rf $(STAGING_DIR)/usr/include/zconf.h
- rm -rf $(STAGING_DIR)/usr/include/zlib.h
- rm -rf $(STAGING_DIR)/usr/lib/libz.*
+define Build/UninstallDev
+ rm -rf $(STAGING_DIR)/usr/include/zconf.h \
+ $(STAGING_DIR)/usr/include/zlib.h \
+ $(STAGING_DIR)/usr/lib/libz.a \
+ $(STAGING_DIR)/usr/lib/libz.so*
+endef
$(eval $(call BuildPackage,zlib))