summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2011-09-29 21:57:48 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2011-09-30 08:26:07 +0200
commit44e42c61c44017a273b187ea19a78b60b499823c (patch)
treef0af6ea9dc6b409e9900d597500ffd4e393762f2 /package
parent069203887856f85b39aba2d54fbeace6ebb0bbc0 (diff)
downloadbuildroot-novena-44e42c61c44017a273b187ea19a78b60b499823c.tar.gz
buildroot-novena-44e42c61c44017a273b187ea19a78b60b499823c.zip
dhrystone: 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/dhrystone/dhrystone.mk12
1 files changed, 5 insertions, 7 deletions
diff --git a/package/dhrystone/dhrystone.mk b/package/dhrystone/dhrystone.mk
index 45eb91c45..098b9f159 100644
--- a/package/dhrystone/dhrystone.mk
+++ b/package/dhrystone/dhrystone.mk
@@ -8,6 +8,11 @@ DHRYSTONE_VERSION = 2
DHRYSTONE_SOURCE = dhry-c
DHRYSTONE_SITE = http://www.netlib.org/benchmark/
+define DHRYSTONE_EXTRACT_CMDS
+ (cd $(@D) && $(SHELL) $(DL_DIR)/$($(PKG)_SOURCE))
+ $(Q)cp $($(PKG)_DIR_PREFIX)/dhrystone/Makefile $(@D)/
+endef
+
define DHRYSTONE_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
endef
@@ -25,10 +30,3 @@ define DHRYSTONE_UNINSTALL_TARGET_CMDS
endef
$(eval $(call GENTARGETS))
-
-$(BUILD_DIR)/dhrystone-$(DHRYSTONE_VERSION)/.stamp_extracted:
- @$(call MESSAGE,"Extracting")
- $(Q)mkdir -p $(@D)
- $(Q)cd $(@D) && $(SHELL) $(DL_DIR)/$($(PKG)_SOURCE)
- $(Q)cp $($(PKG)_DIR_PREFIX)/dhrystone/Makefile $(@D)/
- $(Q)touch $@