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

index d198eee52074356a89aa0beb33a907de9de29731..6bf9b5c172ccf996208d3b4c243f98ad1878693a 100644 (file)
@@ -8,18 +8,16 @@ NETPERF_VERSION = 2.4.5
 NETPERF_SITE = ftp://ftp.netperf.org/netperf
 NETPERF_CONF_ENV = ac_cv_func_setpgrp_void=set
 
-$(eval $(call AUTOTARGETS,package,netperf))
-
-$(NETPERF_TARGET_INSTALL_TARGET):
-       $(call MESSAGE,"Installing to target")
-       $(INSTALL) -m 0755 $(NETPERF_DIR)/src/netperf \
+define NETPERF_INSTALL_TARGET_CMDS
+       $(INSTALL) -m 0755 $(@D)/src/netperf \
                $(TARGET_DIR)/usr/bin/netperf
-       $(INSTALL) -m 0755 $(NETPERF_DIR)/src/netserver \
+       $(INSTALL) -m 0755 $(@D)/src/netserver \
                $(TARGET_DIR)/usr/bin/netserver
-       touch $@
+endef
 
-$(NETPERF_TARGET_UNINSTALL):
-       $(call MESSAGE,"Uninstalling")
+define NETPERF_UNINSTALL_TARGET_CMDS
        rm -f $(TARGET_DIR)/usr/bin/netperf
        rm -f $(TARGET_DIR)/usr/bin/netserver
-       rm -f $(NETPERF_TARGET_INSTALL_TARGET) $(NETPERF_HOOK_POST_INSTALL)
+endef
+
+$(eval $(call AUTOTARGETS,package,netperf))