Instead, simply only copy headers/static lib if BR2_HAVE_DEVFILES
is enabled.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
gzip and libpng.
http://www.gzip.org/zlib/
-
-config BR2_PACKAGE_ZLIB_TARGET_HEADERS
- bool "zlib headers in target"
- depends on BR2_PACKAGE_ZLIB
- help
- Put headers files in the target.
$(INSTALL) -D $(STAGING_DIR)/usr/lib/libz.a $(TARGET_DIR)/usr/lib/libz.a
touch -c $@
-zlib-headers: $(TARGET_DIR)/usr/lib/libz.a
-
-zlib: $(ZLIB_TARGET)
+zlib: $(ZLIB_TARGET) $(if $(BR2_HAVE_DEVFILES,$(TARGET_DIR)/usr/lib/libz.a)
zlib-source: $(DL_DIR)/$(ZLIB_SOURCE)
ifeq ($(BR2_PACKAGE_ZLIB),y)
TARGETS+=zlib
endif
-ifeq ($(BR2_PACKAGE_ZLIB_TARGET_HEADERS),y)
-TARGETS+=zlib-headers
-endif