summaryrefslogtreecommitdiff
path: root/package/libcurl
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-09-01 22:39:37 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-09-12 19:25:00 +0200
commitfa6c7989acb94e4df7ab42cec252d946e8fb0c43 (patch)
tree4c23fd7e3d895c469bdc13577609750e9afd4b8d /package/libcurl
parentf80d06457279c27689fddcb7ef110f30547f4d7b (diff)
libcurl: convert old-style hook to new-style
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libcurl')
-rw-r--r--package/libcurl/libcurl.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
index 488df0455..782bfb3ed 100644
--- a/package/libcurl/libcurl.mk
+++ b/package/libcurl/libcurl.mk
@@ -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