nano: use correct step override method

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Thomas Petazzoni 2010-09-01 23:45:56 +02:00
parent bcffe7a77e
commit 3396401dad

View 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))
define NANO_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 $(@D)/src/nano $(TARGET_DIR)/usr/bin/nano
endef
$(NANO_TARGET_INSTALL_TARGET):
$(call MESSAGE,"Installing to target")
$(INSTALL) -m 0755 $(NANO_DIR)/src/nano \
$(TARGET_DIR)/usr/bin/nano
touch $@
$(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))