iostat.mk 746 B

12345678910111213141516171819202122232425262728293031
  1. #############################################################
  2. #
  3. # iostat
  4. #
  5. #############################################################
  6. IOSTAT_VERSION = 2.2
  7. IOSTAT_SITE = http://www.linuxinsight.com/files
  8. iostat-source: $(DL_DIR)/$(IOSTAT_SOURCE)
  9. define IOSTAT_BUILD_CMDS
  10. $(MAKE) -C $(@D) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)"
  11. endef
  12. define IOSTAT_CLEAN_CMDS
  13. $(MAKE) -C $(@D) clean
  14. endef
  15. define IOSTAT_INSTALL_TARGET_CMDS
  16. $(INSTALL) -D $(IOSTAT_DIR)/iostat $(TARGET_DIR)/usr/bin/iostat
  17. $(INSTALL) -D $(IOSTAT_DIR)/iostat.8 \
  18. $(TARGET_DIR)/usr/share/man/man8/iostat.8
  19. endef
  20. define IOSTAT_UNINSTALL_TARGET_CMDS
  21. rm -f $(TARGET_DIR)/usr/bin/iostat
  22. rm -f $(TARGET_DIR)/usr/share/man/man8/iostat.8
  23. endef
  24. $(eval $(call GENTARGETS))