summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/makefile.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-29 15:21:41 +0800
committerruki <[email protected]>2015-06-29 15:21:41 +0800
commitac86a19928d72a69a1ddd4802479393c717352e4 (patch)
tree9391f03ed6c6d11bbe62af0a2b96d8e42bd6295d /xmake/scripts/base/makefile.lua
parentb61940ce9d77a09d86c0e45cf32255f2dd91bc78 (diff)
add xmake.lua for package library
Diffstat (limited to 'xmake/scripts/base/makefile.lua')
-rw-r--r--xmake/scripts/base/makefile.lua2
1 files changed, 1 insertions, 1 deletions
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]