buildrootschalter/package/memstat/memstat.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

28 lines
725 B
Makefile

#############################################################
#
# memstat
#
#############################################################
MEMSTAT_VERSION = 0.8
MEMSTAT_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/m/memstat
MEMSTAT_SOURCE = memstat_$(MEMSTAT_VERSION).tar.gz
define MEMSTAT_BUILD_CMDS
$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" CFLAGS="$(TARGET_CFLAGS)" \
-C $(@D) memstat
endef
define MEMSTAT_INSTALL_TARGET_CMDS
$(INSTALL) -D $(@D)/memstat.conf -m 0644 \
$(TARGET_DIR)/etc/memstat.conf
$(INSTALL) -D $(@D)/memstat $(TARGET_DIR)/usr/bin/memstat
endef
define MEMSTAT_UNINSTALL_TARGET_CMDS
rm -f $(TARGET_DIR)/etc/memstat.conf
rm -f $(TARGET_DIR)/usr/bin/memstat
endef
$(eval $(call GENTARGETS))