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