kumquat-buildroot/package/iostat/iostat.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

32 lines
746 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))