input-event-daemon.mk 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #############################################################
  2. #
  3. # input-event-daemon
  4. #
  5. #############################################################
  6. INPUT_EVENT_DAEMON_VERSION = v0.1.3
  7. INPUT_EVENT_DAEMON_SITE = git://github.com/gandro/input-event-daemon.git
  8. define INPUT_EVENT_DAEMON_BUILD_CMDS
  9. touch $(@D)/input-event-table.h
  10. $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
  11. LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
  12. endef
  13. define INPUT_EVENT_DAEMON_INSTALL_TARGET_CMDS
  14. $(INSTALL) -m 755 -D $(@D)/input-event-daemon \
  15. $(TARGET_DIR)/usr/bin/input-event-daemon
  16. [ -f $(TARGET_DIR)/etc/input-event-daemon.conf ] || \
  17. $(INSTALL) -m 644 -D $(@D)/docs/sample.conf \
  18. $(TARGET_DIR)/etc/input-event-daemon.conf
  19. [ -f $(TARGET_DIR)/etc/init.d/S99input-event-daemon ] || \
  20. $(INSTALL) -m 0755 -D package/input-event-daemon/S99input-event-daemon \
  21. $(TARGET_DIR)/etc/init.d/S99input-event-daemon
  22. endef
  23. define INPUT_EVENT_DAEMON_CLEAN_CMDS
  24. $(MAKE) -C $(@D) clean
  25. endef
  26. define INPUT_EVENT_DAEMON_UNINSTALL_TARGET_CMDS
  27. rm -f $(TARGET_DIR)/usr/bin/input-event-daemon
  28. rm -f $(TARGET_DIR)/etc/input-event-daemon.conf
  29. endef
  30. $(eval $(call GENTARGETS))