From 167672c7833e13b5da9045dad1bffae464f4eab5 Mon Sep 17 00:00:00 2001 From: Xu Xingliang Date: Fri, 2 Dec 2022 16:28:02 +0800 Subject: [PATCH] interpreters/lua: support lua module list register Signed-off-by: Xu Xingliang --- interpreters/lua/Module.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interpreters/lua/Module.mk b/interpreters/lua/Module.mk index feab40325..675ef51bd 100644 --- a/interpreters/lua/Module.mk +++ b/interpreters/lua/Module.mk @@ -30,7 +30,8 @@ endef ifneq ($(LUAMODNAME),) LUAMODLIST := $(addprefix $(LUAMOD_REGISTRY)$(DELIM),$(addsuffix .bdat,$(LUAMODNAME))) $(LUAMODLIST): $(DEPCONFIG) Makefile - $(call LUAMOD_REGISTER,$(LUAMODNAME),luaopen_$(LUAMODNAME)) + $(call LUAMOD_REGISTER,$(firstword $(LUAMODNAME)),$(firstword luaopen_$(LUAMODNAME))) + $(eval LUAMODNAME=$(filter-out $(firstword $(LUAMODNAME)),$(LUAMODNAME))) register:: $(LUAMODLIST) endif