lighttpd: use correct step override method
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 1 Sep 2010 21:24:17 +0000 (23:24 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 12 Sep 2010 17:26:51 +0000 (19:26 +0200)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/lighttpd/lighttpd.mk

index 3ac1f07ad1e47c1cec460d3aadf4d6b7caf086a5..e6f913cbcb6e35c0fc61baee160f4abdf7ff800a 100644 (file)
@@ -44,11 +44,10 @@ else
 LIGHTTPD_CONF_OPT += --without-pcre
 endif
 
-$(eval $(call AUTOTARGETS,package,lighttpd))
-
-$(LIGHTTPD_TARGET_UNINSTALL):
-       $(call MESSAGE,"Uninstalling")
+define LIGHTTPD_UNINSTALL_TARGET_CMDS
        rm -f $(TARGET_DIR)/usr/sbin/lighttpd
        rm -f $(TARGET_DIR)/usr/sbin/lighttpd-angel
        rm -rf $(TARGET_DIR)/usr/lib/lighttpd
-       rm -f $(LIGHTTPD_TARGET_INSTALL_TARGET) $(LIGHTTPD_HOOK_POST_INSTALL)
+endef
+
+$(eval $(call AUTOTARGETS,package,lighttpd))