diff options
| author | Jo-Philipp Wich <jo@mein.io> | 2022-09-14 14:17:03 +0200 |
|---|---|---|
| committer | Jo-Philipp Wich <jo@mein.io> | 2022-10-25 01:03:37 +0200 |
| commit | b15d768c9a8439dbc66e99f3d5e58d6b0cf8abdf (patch) | |
| tree | 8fcd9eb6dc6eb4643c9a0fb5d3133be24fece71b /luci.mk | |
| parent | 673f38246ac3548caefec41183e3dd7477d9f6f6 (diff) | |
luci.mk: automatically depend on luci-lua-runtime
Make packages having a non-empty luasrc/ directory automatically depend
on the LuCI Lua runtime package.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'luci.mk')
| -rw-r--r-- | luci.mk | 6 |
1 files changed, 6 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) |
