Makefile 866 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Copyright (C) 2013 Nils Schneider <nils at nilsschneider.net>
  2. # This is free software, licensed under the Apache 2.0 license.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:=gluon-luci-autoupdater
  5. PKG_VERSION:=1
  6. PKG_RELEASE:=1
  7. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  8. include $(GLUONDIR)/include/package.mk
  9. PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
  10. define Package/gluon-luci-autoupdater
  11. SECTION:=gluon
  12. CATEGORY:=Gluon
  13. TITLE:=Luci module for gluon-autoupdater
  14. DEPENDS:=+gluon-luci-admin +gluon-autoupdater
  15. endef
  16. define Build/Prepare
  17. mkdir -p $(PKG_BUILD_DIR)
  18. endef
  19. define Build/Configure
  20. endef
  21. define Build/Compile
  22. $(call GluonBuildI18N,gluon-luci-autoupdater,i18n)
  23. endef
  24. define Package/gluon-luci-autoupdater/install
  25. $(CP) ./files/* $(1)/
  26. $(call GluonInstallI18N,gluon-luci-autoupdater,$(1))
  27. endef
  28. $(eval $(call BuildPackage,gluon-luci-autoupdater))