Skip to content
Snippets Groups Projects
Commit 3fcc86cb authored by Marek Vavruša's avatar Marek Vavruša
Browse files

build: Lua modules with multiple source files

parent d1f02095
No related branches found
No related tags found
No related merge requests found
ketcd_SOURCES := ketcd.lua
$(call make_lua_module,ketcd)
......@@ -24,9 +24,9 @@ endef
# Lua target definition
define lua_target
$(1) := $(2)/$(1).lua
$(1) := $$($(1)_SOURCES)
$(1)-clean:
$(1)-install: $(2)/$(1).lua
$(1)-install: $$($(1)_SOURCES)
$(INSTALL) -d $(PREFIX)/$(MODULEDIR)
$(INSTALL) $$^ $(PREFIX)/$(MODULEDIR)
.PHONY: $(1) $(1)-install $(1)-clean
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment