diff options
author | Thiago A. CorrĂȘa <thiago.correa@gmail.com> | 2008-10-31 12:10:10 +0000 |
---|---|---|
committer | Thiago A. CorrĂȘa <thiago.correa@gmail.com> | 2008-10-31 12:10:10 +0000 |
commit | 1bf91aa2a891b1a09bd9f4754e3e1400d09d90b0 (patch) | |
tree | 5361d0dfa0db733129e9bb63b44ebd9e7156f81d | |
parent | c1b4bfbd724e2b3f74ae7935f1d86a54d3dd8a91 (diff) |
Make sure directories are created during install to STAGING_DIR and TARGET_DIR. Thanks to Thomas Petazzoni and Bernhard Reutner-Fischer.
-rw-r--r-- | package/zlib/zlib.mk | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/package/zlib/zlib.mk b/package/zlib/zlib.mk index 904c20b6a..3fdeab918 100644 --- a/package/zlib/zlib.mk +++ b/package/zlib/zlib.mk @@ -37,23 +37,21 @@ $(ZLIB_DIR)/libz.so: $(ZLIB_DIR)/.configured touch -c $@ $(STAGING_DIR)/usr/lib/libz.so: $(ZLIB_DIR)/libz.so - cp -dpf $(ZLIB_DIR)/libz.a $(STAGING_DIR)/usr/lib/ - cp -dpf $(ZLIB_DIR)/zlib.h $(STAGING_DIR)/usr/include/ - cp -dpf $(ZLIB_DIR)/zconf.h $(STAGING_DIR)/usr/include/ - cp -dpf $(ZLIB_DIR)/libz.so* $(STAGING_DIR)/usr/lib/ + $(INSTALL) -D $(ZLIB_DIR)/libz.a $(STAGING_DIR)/usr/lib/ + $(INSTALL) -D $(ZLIB_DIR)/zlib.h $(STAGING_DIR)/usr/include/ + $(INSTALL) $(ZLIB_DIR)/zconf.h $(STAGING_DIR)/usr/include/ + $(INSTALL) $(ZLIB_DIR)/libz.so* $(STAGING_DIR)/usr/lib/ touch -c $@ $(TARGET_DIR)/usr/lib/libz.so: $(STAGING_DIR)/usr/lib/libz.so - mkdir -p $(TARGET_DIR)/usr/lib - cp -dpf $(STAGING_DIR)/usr/lib/libz.so* $(TARGET_DIR)/usr/lib + $(INSTALL) -D $(STAGING_DIR)/usr/lib/libz.so* $(TARGET_DIR)/usr/lib -$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@ touch -c $@ $(TARGET_DIR)/usr/lib/libz.a: $(STAGING_DIR)/usr/lib/libz.so - mkdir -p $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib - cp -dpf $(STAGING_DIR)/usr/include/zlib.h $(TARGET_DIR)/usr/include/ - cp -dpf $(STAGING_DIR)/usr/include/zconf.h $(TARGET_DIR)/usr/include/ - cp -dpf $(STAGING_DIR)/usr/lib/libz.a $(TARGET_DIR)/usr/lib/ + $(INSTALL) -D $(STAGING_DIR)/usr/include/zlib.h $(TARGET_DIR)/usr/include/ + $(INSTALL) $(STAGING_DIR)/usr/include/zconf.h $(TARGET_DIR)/usr/include/ + $(INSTALL) -D $(STAGING_DIR)/usr/lib/libz.a $(TARGET_DIR)/usr/lib/ touch -c $@ zlib-headers: $(TARGET_DIR)/usr/lib/libz.a |