summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-09-01 21:45:56 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-09-12 17:26:51 (GMT)
commit3396401dad1aa6324a9ecddfbf6aa8e2ca5e2072 (patch)
treed67e320d2b020374b01af8cf97b6ed9bdd1a3d1c
parentbcffe7a77e59fd5c89e33c1128b0aa241c00558c (diff)
downloadbuildroot-3396401dad1aa6324a9ecddfbf6aa8e2ca5e2072.tar.gz
buildroot-3396401dad1aa6324a9ecddfbf6aa8e2ca5e2072.tar.bz2
nano: use correct step override method
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/nano/nano.mk17
1 files changed, 7 insertions, 10 deletions
diff --git a/package/nano/nano.mk b/package/nano/nano.mk
index 3e8ba50..47355a3 100644
--- a/package/nano/nano.mk
+++ b/package/nano/nano.mk
@@ -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))