Makefile 995 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright (C) 2012 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-config-mode-core
  5. PKG_VERSION:=2
  6. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  7. include ../gluon.mk
  8. PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
  9. define Package/gluon-config-mode-core
  10. SECTION:=gluon
  11. CATEGORY:=Gluon
  12. TITLE:=Configuration wizard for user friendly setup of new mesh nodes
  13. DEPENDS:=+gluon-setup-mode +gluon-web-theme +gluon-lock-password +pretty-hostname
  14. endef
  15. define Build/Prepare
  16. mkdir -p $(PKG_BUILD_DIR)
  17. endef
  18. define Build/Configure
  19. endef
  20. define Build/Compile
  21. $(call GluonBuildI18N,gluon-config-mode-core,i18n)
  22. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  23. endef
  24. define Package/gluon-config-mode-core/install
  25. $(CP) ./files/* $(1)/
  26. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  27. $(call GluonInstallI18N,gluon-config-mode-core,$(1))
  28. endef
  29. $(eval $(call BuildPackage,gluon-config-mode-core))