libcurl: convert old-style hook to new-style
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 1 Sep 2010 20:39:37 +0000 (22:39 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 12 Sep 2010 17:25:00 +0000 (19:25 +0200)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libcurl/libcurl.mk

index 488df0455bbfcebe8146211cddadf65c2c0e4039..782bfb3ed3a8886de759be71d17dac548a93e21f 100644 (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