summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2011-09-29 21:57:49 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2011-09-30 08:26:07 +0200
commit4ad5533832eba4bf386b81d33ecaaf92a4a145fe (patch)
tree4fe4d1582a73ea4c565a8be60bb005de16fc39da /package
parent44e42c61c44017a273b187ea19a78b60b499823c (diff)
whetstone: use the <pkg>_EXTRACT_CMDS mechanism
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/whetstone/whetstone.mk10
1 files changed, 4 insertions, 6 deletions
diff --git a/package/whetstone/whetstone.mk b/package/whetstone/whetstone.mk
index 48a3adf43..048f4de6f 100644
--- a/package/whetstone/whetstone.mk
+++ b/package/whetstone/whetstone.mk
@@ -8,6 +8,10 @@ WHETSTONE_VERSION = 1.2
WHETSTONE_SOURCE = whetstone.c
WHETSTONE_SITE = http://www.netlib.org/benchmark/
+define WHETSTONE_EXTRACT_CMDS
+ cp $(DL_DIR)/$($(PKG)_SOURCE) $(@D)/
+endef
+
define WHETSTONE_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) LDLIBS="-lm" -C $(@D) whetstone
endef
@@ -25,9 +29,3 @@ define WHETSTONE_UNINSTALL_TARGET_CMDS
endef
$(eval $(call GENTARGETS))
-
-$(BUILD_DIR)/whetstone-$(WHETSTONE_VERSION)/.stamp_extracted:
- @$(call MESSAGE,"Extracting")
- $(Q)mkdir -p $(@D)
- $(Q)cp $(DL_DIR)/$($(PKG)_SOURCE) $(@D)/
- $(Q)touch $@