From ac86a19928d72a69a1ddd4802479393c717352e4 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 29 Jun 2015 15:21:41 +0800 Subject: add xmake.lua for package library --- xmake/scripts/base/makefile.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/scripts/base/makefile.lua') diff --git a/xmake/scripts/base/makefile.lua b/xmake/scripts/base/makefile.lua index e6121d8a2..a42a71788 100644 --- a/xmake/scripts/base/makefile.lua +++ b/xmake/scripts/base/makefile.lua @@ -192,7 +192,7 @@ function makefile._make_target(file, name, target) file:write(string.format("\t@xmake l $(VERBOSE) verbose \"%s\"\n", verbose)) file:write(string.format("\t@xmake l mkdir %s\n", path.directory(targetfile))) file:write(string.format("\t@%s\n", cmd)) - if srcheaders then + if srcheaders and dstheaders then local i = 1 for _, srcheader in ipairs(srcheaders) do local dstheader = dstheaders[i] -- cgit v1.3.1