kumquat-buildroot/package/memtester/memtester.mk
Thomas Petazzoni 0849e8193e package: remove useless arguments from GENTARGETS
Thanks to the pkgparentdir and pkgname functions, we can rewrite the
GENTARGETS macro in a way that avoids the need for each package to
repeat its name and the directory in which it is present.

[Peter: pkgdir->pkgparentdir]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-09-29 23:09:58 +02:00

30 lines
750 B
Makefile

#############################################################
#
# memtester
#
#############################################################
MEMTESTER_VERSION = 4.2.1
MEMTESTER_SOURCE = memtester-$(MEMTESTER_VERSION).tar.gz
MEMTESTER_SITE = http://pyropus.ca/software/memtester/old-versions/
MEMTESTER_TARGET_INSTALL_OPTS = INSTALLPATH=$(TARGET_DIR)/usr
define MEMTESTER_BUILD_CMDS
$(SED) "s,cc,$(TARGET_CC)," $(@D)/conf-*
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
endef
define MEMTESTER_INSTALL_TARGET_CMDS
$(MAKE) $(MEMTESTER_TARGET_INSTALL_OPTS) -C $(@D) install
endef
define MEMTESTER_UNINSTALL_TARGET_CMDS
rm -f $(TARGET_DIR)/usr/bin/memtester
endef
define MEMTESTER_CLEAN_CMDS
-$(MAKE) -C $(@D) clean
endef
$(eval $(call GENTARGETS))