kumquat-buildroot/package/iostat/iostat.mk
Gustavo Zacarias ee77963588 iostat: migrate to gentargets
Also make the cpu counting routine more reliable (for ARM it's
"Processor" in cpuinfo rather than "processor").

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-07-29 17:29:01 +02:00

32 lines
812 B
Makefile

#############################################################
#
# iostat
#
#############################################################
IOSTAT_VERSION = 2.2
IOSTAT_SITE = http://www.linuxinsight.com/files
iostat-source: $(DL_DIR)/$(IOSTAT_SOURCE)
define IOSTAT_BUILD_CMDS
$(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)"
endef
define IOSTAT_CLEAN_CMDS
$(MAKE) -C $(@D) clean
endef
define IOSTAT_INSTALL_TARGET_CMDS
$(INSTALL) -D $(IOSTAT_DIR)/iostat $(TARGET_DIR)/usr/bin/iostat
$(INSTALL) -D $(IOSTAT_DIR)/iostat.8 \
$(TARGET_DIR)/usr/share/man/man8/iostat.8
endef
define IOSTAT_UNINSTALL_TARGET_CMDS
rm -f $(TARGET_DIR)/usr/bin/iostat
rm -f $(TARGET_DIR)/usr/share/man/man8/iostat.8
endef
$(eval $(call GENTARGETS,package,iostat))