- improve the zlib-clean target
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 25 Jun 2007 09:07:08 +0000 (09:07 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 25 Jun 2007 09:07:08 +0000 (09:07 -0000)
package/zlib/zlib.mk

index 247940f562093c714263ce022bf4a2ea4bfc840d..27db93804a1418d06fb3a345c74c73446b8feac5 100644 (file)
@@ -50,6 +50,7 @@ $(STAGING_DIR)/usr/lib/libz.so.$(ZLIB_VER): $(ZLIB_DIR)/libz.so.$(ZLIB_VER)
        touch -c $@
 
 $(TARGET_DIR)/usr/lib/libz.so.$(ZLIB_VER): $(STAGING_DIR)/usr/lib/libz.so.$(ZLIB_VER)
+       mkdir -p $(TARGET_DIR)/usr/lib
        cp -dpf $(STAGING_DIR)/usr/lib/libz.so* $(TARGET_DIR)/usr/lib
        -$(STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libz.so*
        touch -c $@
@@ -71,7 +72,11 @@ zlib-source: $(DL_DIR)/$(ZLIB_SOURCE)
 
 zlib-clean:
        rm -f $(TARGET_DIR)/usr/lib/libz.so* \
-               $(TARGET_DIR)/usr/include/z{lib,conf}.h
+               $(TARGET_DIR)/usr/include/zlib.h \
+               $(TARGET_DIR)/usr/include/zconf.h \
+               $(STAGING_DIR)/usr/include/zlib.h \
+               $(STAGING_DIR)/usr/include/zconf.h \
+               $(STAGING_DIR)/usr/lib/libz.*
        -$(MAKE) -C $(ZLIB_DIR) clean
 
 zlib-dirclean: