nano: use correct step override method
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 1 Sep 2010 21:45:56 +0000 (23:45 +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/nano/nano.mk

index 3e8ba5066a9f6e2d22f875eb179088e7bf033c63..47355a359ccdf5b19230207b37df40c36fb2e1a7 100644 (file)
@@ -10,15 +10,12 @@ NANO_MAKE_ENV = CURSES_LIB="-lncurses"
 NANO_CONF_OPT = --without-slang --enable-tiny
 NANO_DEPENDENCIES = ncurses
 
-$(eval $(call AUTOTARGETS,package,nano))
-
-$(NANO_TARGET_INSTALL_TARGET):
-       $(call MESSAGE,"Installing to target")
-       $(INSTALL) -m 0755 $(NANO_DIR)/src/nano \
-               $(TARGET_DIR)/usr/bin/nano
-       touch $@
+define NANO_INSTALL_TARGET_CMDS
+       $(INSTALL) -m 0755 $(@D)/src/nano $(TARGET_DIR)/usr/bin/nano
+endef
 
-$(NANO_TARGET_UNINSTALL):
-       $(call MESSAGE,"Uninstalling")
+define NANO_UNINSTALL_TARGET_CMDS
        rm -f $(TARGET_DIR)/usr/bin/nano
-       rm -f $(NANO_TARGET_INSTALL_TARGET) $(NANO_HOOK_POST_INSTALL)
+endef
+
+$(eval $(call AUTOTARGETS,package,nano))