gluon/package/gluon-status-page/Makefile

39 lines
880 B
Makefile
Raw Normal View History

2014-01-29 16:17:49 +00:00
include $(TOPDIR)/rules.mk
PKG_NAME:=gluon-status-page
PKG_VERSION:=3
2014-01-29 16:17:49 +00:00
include ../gluon.mk
2014-01-29 16:17:49 +00:00
PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
2014-01-29 16:17:49 +00:00
2016-07-10 18:08:44 +00:00
2014-01-29 16:17:49 +00:00
define Package/gluon-status-page
SECTION:=gluon
CATEGORY:=Gluon
TITLE:=Status page showing information about the node
DEPENDS:=+gluon-web +gluon-status-page-api
2014-01-29 16:17:49 +00:00
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
endef
define Build/Compile
$(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
$(call GluonBuildI18N,gluon-status-page,i18n)
2014-01-29 16:17:49 +00:00
endef
define Package/gluon-status-page/install
$(CP) ./files/* $(1)/
$(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
$(INSTALL_DIR) $(1)/lib/gluon/status-page/view/
$(LN) /lib/gluon/web/i18n $(1)/lib/gluon/status-page/
$(LN) /lib/gluon/web/view/error $(1)/lib/gluon/status-page/view/
$(call GluonInstallI18N,gluon-status-page,$(1))
2014-01-29 16:17:49 +00:00
endef
$(eval $(call BuildPackage,gluon-status-page))