summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--luci.mk6
-rw-r--r--modules/luci-lua-runtime/Makefile1
2 files changed, 7 insertions, 0 deletions
diff --git a/luci.mk b/luci.mk
index fc920f8d3a..f8d6e100bd 100644
--- a/luci.mk
+++ b/luci.mk
@@ -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 \