Browse Source

- hd-idle: rework build

master
vanhofen 3 years ago
parent
commit
5afc52360c
  1. 19
      package/hd-idle/hd-idle.mk

19
package/hd-idle/hd-idle.mk

@ -9,15 +9,14 @@ HD_IDLE_DIR = hd-idle
HD_IDLE_SOURCE = hd-idle-$(HD_IDLE_VERSION).tgz
HD_IDLE_SITE = https://sourceforge.net/projects/hd-idle/files
$(DL_DIR)/$(HD_IDLE_SOURCE):
$(download) $(HD_IDLE_SITE)/$(HD_IDLE_SOURCE)
define HD_IDLE_INSTALL_BINARY
$(INSTALL_EXEC) -D $(PKG_BUILD_DIR)/hd-idle $(TARGET_sbindir)/hd-idle
endef
HD_IDLE_PRE_FOLLOWUP_HOOKS += HD_IDLE_INSTALL_BINARY
hd-idle: $(DL_DIR)/$(HD_IDLE_SOURCE) | $(TARGET_DIR)
$(REMOVE)/$(PKG_DIR)
$(UNTAR)/$(PKG_SOURCE)
$(CHDIR)/$(PKG_DIR); \
hd-idle: | $(TARGET_DIR)
$(call PREPARE)
$(CHDIR)/$($(PKG)_DIR); \
$(TARGET_CONFIGURE_ENV) \
$(MAKE); \
$(INSTALL_EXEC) -D hd-idle $(TARGET_sbindir)/hd-idle
$(REMOVE)/$(PKG_DIR)
$(TOUCH)
$(MAKE)
$(call TARGET_FOLLOWUP)

Loading…
Cancel
Save