diff options
-rw-r--r-- | luci.mk | 6 | ||||
-rw-r--r-- | modules/luci-lua-runtime/Makefile | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -138,6 +138,12 @@ include $(INCLUDE_DIR)/package.mk LUCI_SUBMENU_DEFAULT=$(if $(LUCI_MENU.$(LUCI_TYPE)),$(LUCI_MENU.$(LUCI_TYPE)),$(LUCI_MENU.app)) LUCI_SUBMENU=$(if $(LUCI_SUBMENU_FORCED),$(LUCI_SUBMENU_FORCED),$(LUCI_SUBMENU_DEFAULT)) +ifneq ($(wildcard ${CURDIR}/luasrc/*),) + ifneq ($(filter-out luci-lib-base luci-lua-runtime,$(PKG_NAME)),) + LUCI_DEPENDS += +luci-lua-runtime + endif +endif + define Package/$(PKG_NAME) SECTION:=$(LUCI_SECTION) CATEGORY:=$(LUCI_CATEGORY) diff --git a/modules/luci-lua-runtime/Makefile b/modules/luci-lua-runtime/Makefile index 2c6f38f08f..f25e513eb1 100644 --- a/modules/luci-lua-runtime/Makefile +++ b/modules/luci-lua-runtime/Makefile @@ -15,6 +15,7 @@ LUCI_TITLE:=LuCI Lua runtime libraries LUCI_DEPENDS:= \ +luci-base \ +lua \ + +luci-lib-base \ +luci-lib-nixio \ +luci-lib-ip \ +luci-lib-jsonc \ |