]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
build: Lua modules with multiple source files
authorMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 7 May 2015 13:42:43 +0000 (15:42 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Thu, 7 May 2015 13:42:43 +0000 (15:42 +0200)
modules/ketcd/ketcd.mk
modules/modules.mk

index 3c45daf3b6043101c7d2ddc7be318e76efdc19f4..8fa61d713780a3e9004df32b6d9e77e554e8acaf 100644 (file)
@@ -1 +1,2 @@
+ketcd_SOURCES := ketcd.lua
 $(call make_lua_module,ketcd)
index cb435fc14c79623e19e26f508d026dad02c01253..cf4193a821b1d65562da1bfe0beef758d94d8382 100644 (file)
@@ -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