libcurl: convert old-style hook to new-style

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Thomas Petazzoni 2010-09-01 22:39:37 +02:00
parent f80d064572
commit fa6c7989ac

View File

@ -23,12 +23,14 @@ else
LIBCURL_CONF_OPT += --without-ssl
endif
$(eval $(call AUTOTARGETS,package,libcurl))
$(LIBCURL_HOOK_POST_INSTALL):
define LIBCURL_TARGET_CLEANUP
rm -rf $(TARGET_DIR)/usr/bin/curl-config \
$(if $(BR2_PACKAGE_CURL),,$(TARGET_DIR)/usr/bin/curl)
touch $@
endef
LIBCURL_POST_INSTALL_TARGET_HOOKS += LIBCURL_TARGET_CLEANUP
$(eval $(call AUTOTARGETS,package,libcurl))
curl: libcurl
curl-clean: libcurl-clean