summaryrefslogtreecommitdiffstats
path: root/package/libcurl
diff options
context:
space:
mode:
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