summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/makefile/makefile.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-05-12 23:31:28 +0800
committerruki <[email protected]>2017-05-12 23:31:28 +0800
commitd0a7a684b495d202ead0c6c5d1d46564c24ae53e (patch)
tree871a7cf3aacf03663a1e9f74512c96c406f5656c /xmake/plugins/project/makefile/makefile.lua
parentfd4a54717f7a25127e77c9159f1b4ffeaa69e3c8 (diff)
fix makefile fails
Diffstat (limited to 'xmake/plugins/project/makefile/makefile.lua')
-rw-r--r--xmake/plugins/project/makefile/makefile.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/plugins/project/makefile/makefile.lua b/xmake/plugins/project/makefile/makefile.lua
index f54cf64de..e31de2f83 100644
--- a/xmake/plugins/project/makefile/makefile.lua
+++ b/xmake/plugins/project/makefile/makefile.lua
@@ -337,7 +337,8 @@ function _make_all(makefile)
-- make all
local all = ""
for targetname, target in pairs(project.targets()) do
- if target:get("default") then
+ local default = target:get("default")
+ if default == nil or default == true then
all = all .. " " .. targetname
end
end