Makefile 826 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-cron
  3. PKG_VERSION:=1
  4. PKG_RELEASE:=1
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include $(INCLUDE_DIR)/package.mk
  7. define Package/gluon-cron
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. TITLE:=Cron support
  11. DEPENDS:=+gluon-core
  12. endef
  13. define Package/gluon-cron/description
  14. Gluon community wifi mesh firmware framework: cron support
  15. endef
  16. define Build/Prepare
  17. mkdir -p $(PKG_BUILD_DIR)
  18. $(CP) ./src/* $(PKG_BUILD_DIR)/
  19. endef
  20. define Build/Configure
  21. endef
  22. define Build/Compile
  23. CFLAGS="$(TARGET_CFLAGS)" CPPFLAGS="$(TARGET_CPPFLAGS)" $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS)
  24. endef
  25. define Package/gluon-cron/install
  26. $(CP) ./files/* $(1)/
  27. $(INSTALL_DIR) $(1)/usr/sbin
  28. $(INSTALL_BIN) $(PKG_BUILD_DIR)/gluon-crond $(1)/usr/sbin/
  29. endef
  30. $(eval $(call BuildPackage,gluon-cron))